1 /* Exim: OS-specific C header file for OpenBSD */
2 /* Copyright (c) University of Cambridge 1995 - 2018 */
3 /* Copyright (c) The Exim Maintainers 2021 */
4 /* See the file NOTICE for conditions of use and distribution. */
7 #define HAVE_BSD_GETLOADAVG
9 #define HAVE_SYS_MOUNT_H
10 #define HAVE_GETIFADDRS
11 #define EXIM_HAVE_OPENAT
12 #define EXIM_HAVE_FUTIMENS
13 #define HAVE_ARC4RANDOM
14 /* In May 2014, OpenBSD 5.5 was released which cleaned up the arc4random_* API
15 which removed the arc4random_stir() function. Set NOT_HAVE_ARC4RANDOM_STIR
16 if the version released is past that point. */
17 #include <sys/param.h>
19 # define NOT_HAVE_ARC4RANDOM_STIR
22 typedef struct flock flock_t;
24 #define os_strsignal strsignal
27 typedef struct __res_state *res_state;
29 /* default is non-const */
30 #define ICONV_ARG2_TYPE const char **
36 /* We need to force this; the automatic in buildconfig.c gets %ld */
41 #define OFF_T_FMT "%lld"
42 #define LONGLONG_T long long int
47 #define PID_T_FMT "%d"
52 #define INO_T_FMT "%llu"
57 #define TIME_T_FMT "%lld"
59 /* seems arpa/nameser.h does not define this.
60 Space-constrained devices could use much smaller; a few k. */
61 #define NS_MAXMSG 65535
63 #define EXIM_HAVE_KEVENT