1 /* $Cambridge: exim/src/OS/os.h-Linux,v 1.3 2005/02/17 10:04:41 ph10 Exp $ */
3 /* Exim: OS-specific C header file for Linux */
6 #define GLIBC_IP_OPTIONS
8 #define HAVE_BSD_GETLOADAVG
9 #define HAVE_SYS_STATVFS_H
13 #define F_FREESP O_TRUNC
14 typedef struct flock flock_t;
16 #define os_strsignal strsignal
19 #if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__)
20 #define SIOCGIFCONF_GIVES_ADDR
21 #define HAVE_SYS_MOUNT_H
24 #if defined(__linux__)
26 /* Some versions of Linux need explicit sync-ing of directories as well as
27 files. This setting requests that. If the directory is on NFS, it may not
28 be possible to sync it - in that case, Exim now should ignore the error. But
29 if you have problems in that area, try undefining this. But be aware that you
30 may be in a situation where files are not being properly "committed to stable
31 storage" as quickly as Exim thinks they are. */
33 #define NEED_SYNC_DIRECTORY
35 /* Other OS have "const" in here */
36 #define ICONV_ARG2_TYPE char **
38 #define os_find_running_interfaces os_find_running_interfaces_linux
40 /* Need a prototype for the Linux-specific function. The structure hasn't
41 been defined yet, so we need to pre-declare it. */
43 struct ip_address_item;
44 extern struct ip_address_item *os_find_running_interfaces_linux(void);
46 #endif /* __linux__ */