Build: fix parallelism problem. Bug 2566
[exim.git] / src / OS / os.h-OpenBSD
CommitLineData
61ec970d 1/* Exim: OS-specific C header file for OpenBSD */
f9ba5e22 2/* Copyright (c) University of Cambridge 1995 - 2018 */
9242a7e8
JH
3/* See the file NOTICE for conditions of use and distribution. */
4
61ec970d
PH
5
6#define HAVE_BSD_GETLOADAVG
7#define HAVE_MMAP
8#define HAVE_SYS_MOUNT_H
9#define SIOCGIFCONF_GIVES_ADDR
0eb8eedd 10#define HAVE_ARC4RANDOM
46ca7017
TL
11/* In May 2014, OpenBSD 5.5 was released which cleaned up the arc4random_* API
12 which removed the arc4random_stir() function. Set NOT_HAVE_ARC4RANDOM_STIR
13 if the version released is past that point. */
14#include <sys/param.h>
15#if OpenBSD >= 201405
bb07bcd3 16# define NOT_HAVE_ARC4RANDOM_STIR
46ca7017 17#endif
61ec970d
PH
18
19typedef struct flock flock_t;
20
21#define os_strsignal strsignal
22#define OS_STRSIGNAL
23
c2fb33b4
PP
24typedef struct __res_state *res_state;
25
9c19b270
JH
26/* default is non-const */
27#define ICONV_ARG2_TYPE const char **
28
781bbcd5
JH
29#ifndef EPROTO
30# define EPROTO 71
31#endif
32
bb07bcd3
JH
33/* We need to force this; the automatic in buildconfig.c gets %ld */
34#ifdef OFF_T_FMT
35# undef OFF_T_FMT
36# undef LONGLONG_T
37#endif
38#define OFF_T_FMT "%lld"
39#define LONGLONG_T long long int
40
41#ifdef PID_T_FMT
42# undef PID_T_FMT
43#endif
44#define PID_T_FMT "%d"
45
46#ifdef INO_T_FMT
47# undef INO_T_FMT
48#endif
49#define INO_T_FMT "%llu"
50
51#ifdef TIME_T_FMT
52# undef TIME_T_FMT
53#endif
54#define TIME_T_FMT "%lld"
55
3ea7e280
JH
56/* seems arpa/nameser.h does not define this.
57Space-constrained devices could use much smaller; a few k. */
58#define NS_MAXMSG 65535
714f0e1c 59
61ec970d 60/* End */