1 /* Exim: OS-specific C header file for FreeBSD */
3 #define HAVE_BSD_GETLOADAVG
4 #define HAVE_SETCLASSRESOURCES
6 #define HAVE_SYS_MOUNT_H
7 #define SIOCGIFCONF_GIVES_ADDR
8 #define HAVE_SRANDOMDEV
9 #define HAVE_ARC4RANDOM
11 typedef struct flock flock_t;
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".
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 * (Actually, people still using old releases past EOL; we shouldn't support
22 * them but I don't want to deal with howls of complaints because we dare
23 * to not support the unsupported, so guard this on FreeBSD 10+)
25 * Thus we no longer override iconv.
27 * However, if libiconv is installed, and anything adds /usr/local/include
28 * to include-path (likely) then we'll get that. So define a variable
29 * which makes the libiconv try to not interfere with OS iconv.
32 # define LIBICONV_PLUG
34 /* for more specific version constraints, include <sys/param.h> and look at
35 * __FreeBSD_version */