Start
[exim.git] / src / OS / os.h-Linux
CommitLineData
61ec970d
PH
1/* $Cambridge: exim/src/OS/os.h-Linux,v 1.1 2004/10/06 15:07:39 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_VFS_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
14files. This setting requests that. If the directory is on NFS, it may not
15be possible to sync it - in that case, Exim now should ignore the error. But
16if you have problems in that area, try undefining this. But be aware that you
17may be in a situation where files are not being properly "committed to stable
18storage" 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
26typedef 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
34been defined yet, so we need to pre-declare it. */
35
36struct ip_address_item;
37extern struct ip_address_item *os_find_running_interfaces_linux(void);
38
39/* End */