1 /* Exim: OS-specific C header file for Darwin (Mac OS X) */
3 /* #define CRYPT_H */ /* Apparently this isn't needed */
6 #define HAVE_SYS_MOUNT_H
8 #define SIOCGIFCONF_GIVES_ADDR
11 #define F_FREESP O_TRUNC
12 typedef struct flock flock_t;
14 #define BASE_62 36 /* HFS+ aliases lower and upper cases in filenames.
15 Consider reducing MAX_LOCALHOST_NUMBER */
17 #ifndef _BSD_SOCKLEN_T_
18 # define _BSD_SOCKLEN_T_ int32_t /* socklen_t (duh) */
21 /* Settings for handling IP options. There's no netinet/ip_var.h. The IP
22 option handling is in the style of the later GLIBCs but the GLIBC macros
23 aren't set, so we invent a new one. */
26 #define DARWIN_IP_OPTIONS
28 /* Need this for the DNS lookup code. Remember to remove if we get round to
29 updating Exim to use the newer interface. */
33 /* It's not .so for dynamic libraries on Darwin. */
34 #define DYNLIB_FN_EXT "dylib"
36 /* We currently need some assistance getting OFF_T_FMT correct on MacOS */
40 #define OFF_T_FMT "%lld"
41 #define LONGLONG_T long int
43 /* default is non-const */
44 #define ICONV_ARG2_TYPE const char **
46 /* seems arpa/nameser.h does not define this */
47 #define NS_MAXMSG 65535
49 /* There may be very many supplementary groups for the user. See notes
50 in "man 2 getgroups". */
51 #define _DARWIN_UNLIMITED_GETGROUPS
52 #define EXIM_GROUPLIST_SIZE 64
54 /* TCP Fast Open: Darwin uses a connectx() call
55 rather than a modified sendto() */
56 #define EXIM_TFO_CONNECTX