Commit | Line | Data |
---|---|---|
61ec970d PH |
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 | |
0eb8eedd | 7 | #define HAVE_ARC4RANDOM |
46ca7017 TL |
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 | |
bb07bcd3 | 13 | # define NOT_HAVE_ARC4RANDOM_STIR |
46ca7017 | 14 | #endif |
61ec970d PH |
15 | |
16 | typedef struct flock flock_t; | |
17 | ||
18 | #define os_strsignal strsignal | |
19 | #define OS_STRSIGNAL | |
20 | ||
c2fb33b4 PP |
21 | typedef struct __res_state *res_state; |
22 | ||
9c19b270 JH |
23 | /* default is non-const */ |
24 | #define ICONV_ARG2_TYPE const char ** | |
25 | ||
781bbcd5 JH |
26 | #ifndef EPROTO |
27 | # define EPROTO 71 | |
28 | #endif | |
29 | ||
bb07bcd3 JH |
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 | ||
61ec970d | 53 | /* End */ |