1 /* $Cambridge: exim/src/OS/os.h-Linux,v 1.1 2004/10/06 15:07:39 ph10 Exp $ */
3 /* Exim: OS-specific C header file for Linux */
6 #define GLIBC_IP_OPTIONS
10 #define SIOCGIFCONF_GIVES_ADDR
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. */
20 #define NEED_SYNC_DIRECTORY
22 /* Other OS have "const" in here */
23 #define ICONV_ARG2_TYPE char **
25 #define F_FREESP O_TRUNC
26 typedef struct flock flock_t;
28 #define os_strsignal strsignal
31 #define os_find_running_interfaces os_find_running_interfaces_linux
33 /* Need a prototype for the Linux-specific function. The structure hasn't
34 been defined yet, so we need to pre-declare it. */
36 struct ip_address_item;
37 extern struct ip_address_item *os_find_running_interfaces_linux(void);