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