Use compressed form of ipv6 in $sender_host_address under -bh. Bug 3027
[exim.git] / src / OS / os.h-OpenBSD
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. */
6
7
8 #define HAVE_BSD_GETLOADAVG
9 #define HAVE_MMAP
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>
19 #if OpenBSD >= 201405
20 # define NOT_HAVE_ARC4RANDOM_STIR
21 #endif
22
23 typedef struct flock flock_t;
24
25 #define os_strsignal strsignal
26 #define OS_STRSIGNAL
27
28 typedef struct __res_state *res_state;
29
30 /* default is non-const */
31 #define ICONV_ARG2_TYPE const char **
32
33 #ifndef EPROTO
34 # define EPROTO 71
35 #endif
36
37 /* We need to force this; the automatic in buildconfig.c gets %ld */
38 #ifdef OFF_T_FMT
39 # undef OFF_T_FMT
40 # undef LONGLONG_T
41 #endif
42 #define OFF_T_FMT "%lld"
43 #define LONGLONG_T long long int
44
45 #ifdef PID_T_FMT
46 # undef PID_T_FMT
47 #endif
48 #define PID_T_FMT "%d"
49
50 #ifdef INO_T_FMT
51 # undef INO_T_FMT
52 #endif
53 #define INO_T_FMT "%llu"
54
55 #ifdef TIME_T_FMT
56 # undef TIME_T_FMT
57 #endif
58 #define TIME_T_FMT "%lld"
59
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
63
64 #define EXIM_HAVE_KEVENT
65
66 /* End */