NM/01
[exim.git] / src / OS / os.h-Linux
CommitLineData
2f43ad4a 1/* $Cambridge: exim/src/OS/os.h-Linux,v 1.5 2006/12/20 19:54:23 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
61ec970d 10#define NO_IP_VAR_H
61ec970d
PH
11#define SIG_IGN_WORKS
12
2f43ad4a
TK
13/* When using the experimental Domainkeys/DKIM extensions, setting
14HAVE_LINUX_SENDFILE can increase performance on outgoing mail a bit.
15Note: With older glibc versions this setting will conflict with the
16_FILE_OFFSET_BITS=64 setting defined as part of the Linux CFLAGS. */
17
18/* #define HAVE_LINUX_SENDFILE */
19
6e2b4ccc
PH
20#define F_FREESP O_TRUNC
21typedef struct flock flock_t;
22
23#define os_strsignal strsignal
24#define OS_STRSIGNAL
25
26#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__)
27#define SIOCGIFCONF_GIVES_ADDR
28#define HAVE_SYS_MOUNT_H
29#endif
30
31#if defined(__linux__)
32
61ec970d
PH
33/* Some versions of Linux need explicit sync-ing of directories as well as
34files. This setting requests that. If the directory is on NFS, it may not
35be possible to sync it - in that case, Exim now should ignore the error. But
36if you have problems in that area, try undefining this. But be aware that you
37may be in a situation where files are not being properly "committed to stable
38storage" as quickly as Exim thinks they are. */
39
40#define NEED_SYNC_DIRECTORY
41
42/* Other OS have "const" in here */
43#define ICONV_ARG2_TYPE char **
44
61ec970d
PH
45#define os_find_running_interfaces os_find_running_interfaces_linux
46
47/* Need a prototype for the Linux-specific function. The structure hasn't
48been defined yet, so we need to pre-declare it. */
49
50struct ip_address_item;
51extern struct ip_address_item *os_find_running_interfaces_linux(void);
52
6e2b4ccc
PH
53#endif /* __linux__ */
54
61ec970d 55/* End */