Import Upstream version 4.92
[hcoop/debian/exim4.git] / OS / os.h-Darwin
CommitLineData
420a0d19
CE
1/* Exim: OS-specific C header file for Darwin (Mac OS X) */
2
3/* #define CRYPT_H */ /* Apparently this isn't needed */
4
5#define HAVE_MMAP
6#define HAVE_SYS_MOUNT_H
7#define PAM_H_IN_PAM
8#define SIOCGIFCONF_GIVES_ADDR
9
420a0d19
CE
10
11#define F_FREESP O_TRUNC
12typedef struct flock flock_t;
13
14#define BASE_62 36 /* HFS+ aliases lower and upper cases in filenames.
15 Consider reducing MAX_LOCALHOST_NUMBER */
16
17#ifndef _BSD_SOCKLEN_T_
2ea97746 18# define _BSD_SOCKLEN_T_ int32_t /* socklen_t (duh) */
420a0d19
CE
19#endif
20
21/* Settings for handling IP options. There's no netinet/ip_var.h. The IP
22option handling is in the style of the later GLIBCs but the GLIBC macros
23aren't set, so we invent a new one. */
24
25#define NO_IP_VAR_H
26#define DARWIN_IP_OPTIONS
27
28/* Need this for the DNS lookup code. Remember to remove if we get round to
29updating Exim to use the newer interface. */
30
31#define BIND_8_COMPAT
32
33/* It's not .so for dynamic libraries on Darwin. */
34#define DYNLIB_FN_EXT "dylib"
35
36/* We currently need some assistance getting OFF_T_FMT correct on MacOS */
37#ifdef OFF_T_FMT
38# undef OFF_T_FMT
39#endif
40#define OFF_T_FMT "%lld"
41#define LONGLONG_T long int
42
2ea97746
CE
43/* default is non-const */
44#define ICONV_ARG2_TYPE const char **
45
46/* seems arpa/nameser.h does not define this */
47#define NS_MAXMSG 65535
48
49/* There may be very many supplementary groups for the user. See notes
50in "man 2 getgroups". */
51#define _DARWIN_UNLIMITED_GETGROUPS
52#define EXIM_GROUPLIST_SIZE 64
53
54/* TCP Fast Open: Darwin uses a connectx() call
55rather than a modified sendto() */
56#define EXIM_TFO_CONNECTX
57
420a0d19 58/* End */