Commit | Line | Data |
---|---|---|
a8530a10 | 1 | /* $Cambridge: exim/src/OS/os.h-Linux,v 1.4 2006/10/30 22:06:33 tom Exp $ */ |
61ec970d PH |
2 | |
3 | /* Exim: OS-specific C header file for Linux */ | |
4 | ||
5 | #define CRYPT_H | |
6 | #define GLIBC_IP_OPTIONS | |
7 | #define HAVE_MMAP | |
6e2b4ccc | 8 | #define HAVE_BSD_GETLOADAVG |
26034054 | 9 | #define HAVE_SYS_STATVFS_H |
a8530a10 | 10 | #define HAVE_LINUX_SENDFILE |
61ec970d | 11 | #define NO_IP_VAR_H |
61ec970d PH |
12 | #define SIG_IGN_WORKS |
13 | ||
6e2b4ccc PH |
14 | #define F_FREESP O_TRUNC |
15 | typedef struct flock flock_t; | |
16 | ||
17 | #define os_strsignal strsignal | |
18 | #define OS_STRSIGNAL | |
19 | ||
20 | #if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__) | |
21 | #define SIOCGIFCONF_GIVES_ADDR | |
22 | #define HAVE_SYS_MOUNT_H | |
23 | #endif | |
24 | ||
25 | #if defined(__linux__) | |
26 | ||
61ec970d PH |
27 | /* Some versions of Linux need explicit sync-ing of directories as well as |
28 | files. This setting requests that. If the directory is on NFS, it may not | |
29 | be possible to sync it - in that case, Exim now should ignore the error. But | |
30 | if you have problems in that area, try undefining this. But be aware that you | |
31 | may be in a situation where files are not being properly "committed to stable | |
32 | storage" as quickly as Exim thinks they are. */ | |
33 | ||
34 | #define NEED_SYNC_DIRECTORY | |
35 | ||
36 | /* Other OS have "const" in here */ | |
37 | #define ICONV_ARG2_TYPE char ** | |
38 | ||
61ec970d PH |
39 | #define os_find_running_interfaces os_find_running_interfaces_linux |
40 | ||
41 | /* Need a prototype for the Linux-specific function. The structure hasn't | |
42 | been defined yet, so we need to pre-declare it. */ | |
43 | ||
44 | struct ip_address_item; | |
45 | extern struct ip_address_item *os_find_running_interfaces_linux(void); | |
46 | ||
6e2b4ccc PH |
47 | #endif /* __linux__ */ |
48 | ||
61ec970d | 49 | /* End */ |