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 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 /* See the file NOTICE for conditions of use and distribution. */
8 #define HAVE_BSD_GETLOADAVG
10 #define HAVE_SYS_MOUNT_H
11 #define HAVE_GETIFADDRS
12 #define EXIM_HAVE_OPENAT
13 #define EXIM_HAVE_FUTIMENS
14 #define HAVE_ARC4RANDOM
15 /* In May 2014, OpenBSD 5.5 was released which cleaned up the arc4random_* API
16 which removed the arc4random_stir() function. Set NOT_HAVE_ARC4RANDOM_STIR
17 if the version released is past that point. */
18 #include <sys/param.h>
20 # define NOT_HAVE_ARC4RANDOM_STIR
23 typedef struct flock flock_t;
25 #define os_strsignal strsignal
28 typedef struct __res_state *res_state;
30 /* default is non-const */
31 #define ICONV_ARG2_TYPE const char **
37 /* We need to force this; the automatic in buildconfig.c gets %ld */
42 #define OFF_T_FMT "%lld"
43 #define LONGLONG_T long long int
48 #define PID_T_FMT "%d"
53 #define INO_T_FMT "%llu"
58 #define TIME_T_FMT "%lld"
60 /* seems arpa/nameser.h does not define this.
61 Space-constrained devices could use much smaller; a few k. */
62 #define NS_MAXMSG 65535
64 #define EXIM_HAVE_KEVENT