1 /* Exim: OS-specific C header file for OpenBSD */
2 /* Copyright (c) University of Cambridge 1995 - 2018 */
3 /* See the file NOTICE for conditions of use and distribution. */
6 #define HAVE_BSD_GETLOADAVG
8 #define HAVE_SYS_MOUNT_H
9 #define SIOCGIFCONF_GIVES_ADDR
10 #define EXIM_HAVE_OPENAT
11 #define HAVE_ARC4RANDOM
12 /* In May 2014, OpenBSD 5.5 was released which cleaned up the arc4random_* API
13 which removed the arc4random_stir() function. Set NOT_HAVE_ARC4RANDOM_STIR
14 if the version released is past that point. */
15 #include <sys/param.h>
17 # define NOT_HAVE_ARC4RANDOM_STIR
20 typedef struct flock flock_t;
22 #define os_strsignal strsignal
25 typedef struct __res_state *res_state;
27 /* default is non-const */
28 #define ICONV_ARG2_TYPE const char **
34 /* We need to force this; the automatic in buildconfig.c gets %ld */
39 #define OFF_T_FMT "%lld"
40 #define LONGLONG_T long long int
45 #define PID_T_FMT "%d"
50 #define INO_T_FMT "%llu"
55 #define TIME_T_FMT "%lld"
57 /* seems arpa/nameser.h does not define this.
58 Space-constrained devices could use much smaller; a few k. */
59 #define NS_MAXMSG 65535