1 /* $Cambridge: exim/src/OS/os.h-Linux,v 1.4 2006/10/30 22:06:33 tom Exp $ */
3 /* Exim: OS-specific C header file for Linux */
6 #define GLIBC_IP_OPTIONS
8 #define HAVE_BSD_GETLOADAVG
9 #define HAVE_SYS_STATVFS_H
10 #define HAVE_LINUX_SENDFILE
14 #define F_FREESP O_TRUNC
15 typedef struct flock flock_t;
17 #define os_strsignal strsignal
20 #if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__)
21 #define SIOCGIFCONF_GIVES_ADDR
22 #define HAVE_SYS_MOUNT_H
25 #if defined(__linux__)
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. */
34 #define NEED_SYNC_DIRECTORY
36 /* Other OS have "const" in here */
37 #define ICONV_ARG2_TYPE char **
39 #define os_find_running_interfaces os_find_running_interfaces_linux
41 /* Need a prototype for the Linux-specific function. The structure hasn't
42 been defined yet, so we need to pre-declare it. */
44 struct ip_address_item;
45 extern struct ip_address_item *os_find_running_interfaces_linux(void);
47 #endif /* __linux__ */