| 1 |
/* Exim: OS-specific C header file for OpenBSD */ |
| 2 |
|
| 3 |
/* Copyright (c) The Exim Maintainers 2021 - 2026 */ |
| 4 |
/* Copyright (c) University of Cambridge 1995 - 2018 */ |
| 5 |
/* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 6 |
/* See the file NOTICE for conditions of use and distribution. */ |
| 7 |
|
| 8 |
|
| 9 |
#define HAVE_BSD_GETLOADAVG |
| 10 |
#define HAVE_MMAP |
| 11 |
#define HAVE_SYS_MOUNT_H |
| 12 |
#define HAVE_GETIFADDRS |
| 13 |
#define EXIM_HAVE_OPENAT |
| 14 |
#define EXIM_HAVE_FUTIMENS |
| 15 |
#define HAVE_ARC4RANDOM |
| 16 |
/* In May 2014, OpenBSD 5.5 was released which cleaned up the arc4random_* API |
| 17 |
which removed the arc4random_stir() function. Set NOT_HAVE_ARC4RANDOM_STIR |
| 18 |
if the version released is past that point. */ |
| 19 |
#include <sys/param.h> |
| 20 |
#if OpenBSD >= 201405 |
| 21 |
# define NOT_HAVE_ARC4RANDOM_STIR |
| 22 |
#endif |
| 23 |
|
| 24 |
typedef struct flock flock_t; |
| 25 |
|
| 26 |
#define os_strsignal strsignal |
| 27 |
#define OS_STRSIGNAL |
| 28 |
|
| 29 |
typedef struct __res_state *res_state; |
| 30 |
|
| 31 |
/* default is non-const */ |
| 32 |
#define ICONV_ARG2_TYPE const char ** |
| 33 |
|
| 34 |
#ifndef EPROTO |
| 35 |
# define EPROTO 71 |
| 36 |
#endif |
| 37 |
|
| 38 |
/* We need to force this; the automatic in buildconfig.c gets %ld */ |
| 39 |
#ifdef OFF_T_FMT |
| 40 |
# undef OFF_T_FMT |
| 41 |
# undef LONGLONG_T |
| 42 |
#endif |
| 43 |
#define OFF_T_FMT "%lld" |
| 44 |
#define LONGLONG_T long long int |
| 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 |
|
| 56 |
/* seems arpa/nameser.h does not define this. |
| 57 |
Space-constrained devices could use much smaller; a few k. */ |
| 58 |
#define NS_MAXMSG 65535 |
| 59 |
|
| 60 |
#define EXIM_HAVE_KEVENT |
| 61 |
|
| 62 |
/* End */ |