| 1 | /* Exim: OS-specific C header file for OpenBSD */ |
| 2 | |
| 3 | #define HAVE_BSD_GETLOADAVG |
| 4 | #define HAVE_MMAP |
| 5 | #define HAVE_SYS_MOUNT_H |
| 6 | #define SIOCGIFCONF_GIVES_ADDR |
| 7 | #define HAVE_ARC4RANDOM |
| 8 | /* In May 2014, OpenBSD 5.5 was released which cleaned up the arc4random_* API |
| 9 | which removed the arc4random_stir() function. Set NOT_HAVE_ARC4RANDOM_STIR |
| 10 | if the version released is past that point. */ |
| 11 | #include <sys/param.h> |
| 12 | #if OpenBSD >= 201405 |
| 13 | # define NOT_HAVE_ARC4RANDOM_STIR |
| 14 | #endif |
| 15 | |
| 16 | typedef struct flock flock_t; |
| 17 | |
| 18 | #define os_strsignal strsignal |
| 19 | #define OS_STRSIGNAL |
| 20 | |
| 21 | typedef struct __res_state *res_state; |
| 22 | |
| 23 | /* default is non-const */ |
| 24 | #define ICONV_ARG2_TYPE const char ** |
| 25 | |
| 26 | #ifndef EPROTO |
| 27 | # define EPROTO 71 |
| 28 | #endif |
| 29 | |
| 30 | /* We need to force this; the automatic in buildconfig.c gets %ld */ |
| 31 | #ifdef OFF_T_FMT |
| 32 | # undef OFF_T_FMT |
| 33 | # undef LONGLONG_T |
| 34 | #endif |
| 35 | #define OFF_T_FMT "%lld" |
| 36 | #define LONGLONG_T long long int |
| 37 | |
| 38 | #ifdef PID_T_FMT |
| 39 | # undef PID_T_FMT |
| 40 | #endif |
| 41 | #define PID_T_FMT "%d" |
| 42 | |
| 43 | #ifdef INO_T_FMT |
| 44 | # undef INO_T_FMT |
| 45 | #endif |
| 46 | #define INO_T_FMT "%llu" |
| 47 | |
| 48 | #ifdef TIME_T_FMT |
| 49 | # undef TIME_T_FMT |
| 50 | #endif |
| 51 | #define TIME_T_FMT "%lld" |
| 52 | |
| 53 | /* End */ |