Commit | Line | Data |
---|---|---|
61ec970d PH |
1 | /* Exim: OS-specific C header file for FreeBSD */ |
2 | ||
3 | #define HAVE_BSD_GETLOADAVG | |
79378e0f | 4 | #define HAVE_SETCLASSRESOURCES |
61ec970d PH |
5 | #define HAVE_MMAP |
6 | #define HAVE_SYS_MOUNT_H | |
7 | #define SIOCGIFCONF_GIVES_ADDR | |
0eb8eedd NM |
8 | #define HAVE_SRANDOMDEV |
9 | #define HAVE_ARC4RANDOM | |
61ec970d PH |
10 | |
11 | typedef struct flock flock_t; | |
12 | ||
863bd541 PP |
13 | /* iconv arg2 type: libiconv in Ports uses "const char* * inbuf" and was |
14 | * traditionally the only approach available. The iconv functionality | |
15 | * in libc is "char ** restrict src". | |
16 | * | |
17 | * <https://www.freebsd.org/doc/en/books/porters-handbook/using-iconv.html> | |
18 | * says that libc has iconv since 2013, in 10-CURRENT. FreeBSD man-pages | |
19 | * shows it included in 10.0-RELEASE. Writing this in 2017, 10.3 is the | |
20 | * oldest supported release, so we should assume non-libiconv by default. | |
21 | * | |
22 | * Thus we no longer override iconv. | |
23 | * | |
24 | * However, if libiconv is installed, and anything adds /usr/local/include | |
25 | * to include-path (likely) then we'll get that. So define a variable | |
26 | * which makes the libiconv try to not interfere with OS iconv. | |
27 | */ | |
28 | #define LIBICONV_PLUG | |
9c19b270 | 29 | |
61ec970d | 30 | /* End */ |