1 /* Exim: OS-specific C header file for Linux */
4 #define GLIBC_IP_OPTIONS
6 #define HAVE_BSD_GETLOADAVG
7 #define HAVE_SYS_STATVFS_H
11 /* When using the DKIM, setting HAVE_LINUX_SENDFILE can increase
12 performance on outgoing mail a bit. Note: With older glibc versions
13 this setting will conflict with the _FILE_OFFSET_BITS=64 setting
14 defined as part of the Linux CFLAGS. */
16 /* #define HAVE_LINUX_SENDFILE */
18 #define F_FREESP O_TRUNC
19 typedef struct flock flock_t;
21 #define os_strsignal strsignal
24 #if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__)
25 #define SIOCGIFCONF_GIVES_ADDR
26 #define HAVE_SYS_MOUNT_H
29 #if defined(__linux__)
31 /* Some versions of Linux need explicit sync-ing of directories as well as
32 files. This setting requests that. If the directory is on NFS, it may not
33 be possible to sync it - in that case, Exim now should ignore the error. But
34 if you have problems in that area, try undefining this. But be aware that you
35 may be in a situation where files are not being properly "committed to stable
36 storage" as quickly as Exim thinks they are. */
38 #define NEED_SYNC_DIRECTORY
40 /* Other OS have "const" in here */
41 #define ICONV_ARG2_TYPE char **
43 #define os_find_running_interfaces os_find_running_interfaces_linux
45 /* Need a prototype for the Linux-specific function. The structure hasn't
46 been defined yet, so we need to pre-declare it. */
48 struct ip_address_item;
49 extern struct ip_address_item *os_find_running_interfaces_linux(void);
51 #endif /* __linux__ */