| 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 | |
| 11 | typedef 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 | * (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+) |
| 24 | * |
| 25 | * Thus we no longer override iconv. |
| 26 | * |
| 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. |
| 30 | */ |
| 31 | #if __FreeBSD__ >= 10 |
| 32 | # define LIBICONV_PLUG |
| 33 | #endif |
| 34 | /* for more specific version constraints, include <sys/param.h> and look at |
| 35 | * __FreeBSD_version */ |
| 36 | |
| 37 | /* End */ |