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