Compilation warnings shushing
[exim.git] / src / OS / os.h-FreeBSD
... / ...
CommitLineData
1/* Exim: OS-specific C header file for FreeBSD */
2
3#define HAVE_BSD_GETLOADAVG
4#define HAVE_SETCLASSRESOURCES
5#define HAVE_MMAP
6#define HAVE_SYS_MOUNT_H
7#define SIOCGIFCONF_GIVES_ADDR
8#define HAVE_SRANDOMDEV
9#define HAVE_ARC4RANDOM
10
11typedef struct flock flock_t;
12
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
29
30/* End */