| 1 | /* Exim: OS-specific C header file for Linux */ |
| 2 | |
| 3 | #define CRYPT_H |
| 4 | #define GLIBC_IP_OPTIONS |
| 5 | #define HAVE_MMAP |
| 6 | #define HAVE_BSD_GETLOADAVG |
| 7 | #define HAVE_SYS_STATVFS_H |
| 8 | #define NO_IP_VAR_H |
| 9 | #define SIG_IGN_WORKS |
| 10 | |
| 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. */ |
| 15 | |
| 16 | /* #define HAVE_LINUX_SENDFILE */ |
| 17 | |
| 18 | #define F_FREESP O_TRUNC |
| 19 | typedef struct flock flock_t; |
| 20 | |
| 21 | #define os_strsignal strsignal |
| 22 | #define OS_STRSIGNAL |
| 23 | |
| 24 | #if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__) |
| 25 | #define SIOCGIFCONF_GIVES_ADDR |
| 26 | #define HAVE_SYS_MOUNT_H |
| 27 | #endif |
| 28 | |
| 29 | #if defined(__linux__) |
| 30 | |
| 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. */ |
| 37 | |
| 38 | #define NEED_SYNC_DIRECTORY |
| 39 | |
| 40 | /* Other OS have "const" in here */ |
| 41 | #define ICONV_ARG2_TYPE char ** |
| 42 | |
| 43 | #define os_find_running_interfaces os_find_running_interfaces_linux |
| 44 | |
| 45 | /* Need a prototype for the Linux-specific function. The structure hasn't |
| 46 | been defined yet, so we need to pre-declare it. */ |
| 47 | |
| 48 | struct ip_address_item; |
| 49 | extern struct ip_address_item *os_find_running_interfaces_linux(void); |
| 50 | |
| 51 | #endif /* __linux__ */ |
| 52 | |
| 53 | /* End */ |