Commit | Line | Data |
---|---|---|
61ec970d PH |
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 | ||
f452e07e TK |
10 | /* OSX 10.2 does not have poll.h, 10.3 does emulate it badly. */ |
11 | #define NO_POLL_H | |
12 | ||
61ec970d PH |
13 | #define F_FREESP O_TRUNC |
14 | typedef struct flock flock_t; | |
15 | ||
16 | #define BASE_62 36 /* HFS+ aliases lower and upper cases in filenames. | |
17 | Consider reducing MAX_LOCALHOST_NUMBER */ | |
18 | ||
19 | #ifndef _BSD_SOCKLEN_T_ | |
20 | #define _BSD_SOCKLEN_T_ int32_t /* socklen_t (duh) */ | |
21 | #endif | |
22 | ||
23 | /* Settings for handling IP options. There's no netinet/ip_var.h. The IP | |
24 | option handling is in the style of the later GLIBCs but the GLIBC macros | |
25 | aren't set, so we invent a new one. */ | |
26 | ||
27 | #define NO_IP_VAR_H | |
28 | #define DARWIN_IP_OPTIONS | |
29 | ||
f625cc5a PH |
30 | /* Need this for the DNS lookup code. Remember to remove if we get round to |
31 | updating Exim to use the newer interface. */ | |
32 | ||
33 | #define BIND_8_COMPAT | |
34 | ||
e12f8c32 PP |
35 | /* It's not .so for dynamic libraries on Darwin. */ |
36 | #define DYNLIB_FN_EXT "dylib" | |
37 | ||
17c76198 | 38 | /* We currently need some assistance getting OFF_T_FMT correct on MacOS */ |
2fc44bd5 PP |
39 | #ifdef OFF_T_FMT |
40 | # undef OFF_T_FMT | |
41 | #endif | |
42 | #define OFF_T_FMT "%lld" | |
17c76198 PP |
43 | #define LONGLONG_T long int |
44 | ||
9c19b270 JH |
45 | /* default is non-const */ |
46 | #define ICONV_ARG2_TYPE const char ** | |
47 | ||
61ec970d | 48 | /* End */ |