summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-06-27 11:27:59 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2020-06-27 11:27:59 +0100
commitc8ffb42d9a821fd7dfeeee1494f6be88cdf7b264 (patch)
treeae517dbd687d74cc11a146d77ec8cdd26f59e183
parentf5ee670dc5eb90c68ee684f478598bd9af6fbf36 (diff)
Fix build for non-Linux platforms having openat.
Broken-by: 1077d3c3f9
-rw-r--r--src/OS/os.h-Darwin1
-rw-r--r--src/OS/os.h-FreeBSD1
-rw-r--r--src/OS/os.h-OpenBSD1
-rw-r--r--src/OS/os.h-SunOS51
4 files changed, 4 insertions, 0 deletions
diff --git a/src/OS/os.h-Darwin b/src/OS/os.h-Darwin
index 7e3a67c4e..1a557d829 100644
--- a/src/OS/os.h-Darwin
+++ b/src/OS/os.h-Darwin
@@ -6,6 +6,7 @@
#define HAVE_SYS_MOUNT_H
#define PAM_H_IN_PAM
#define SIOCGIFCONF_GIVES_ADDR
+#define EXIM_HAVE_OPENAT
#define F_FREESP O_TRUNC
diff --git a/src/OS/os.h-FreeBSD b/src/OS/os.h-FreeBSD
index 73d99767a..548a82d4b 100644
--- a/src/OS/os.h-FreeBSD
+++ b/src/OS/os.h-FreeBSD
@@ -14,6 +14,7 @@
#define SIOCGIFCONF_GIVES_ADDR
#define HAVE_SRANDOMDEV
#define HAVE_ARC4RANDOM
+#define EXIM_HAVE_OPENAT
/* Applications should not call arc4random_stir() explicitly after
* FreeBSD r227520 (approximately 1000002).
diff --git a/src/OS/os.h-OpenBSD b/src/OS/os.h-OpenBSD
index dde779f00..dc5dc0233 100644
--- a/src/OS/os.h-OpenBSD
+++ b/src/OS/os.h-OpenBSD
@@ -7,6 +7,7 @@
#define HAVE_MMAP
#define HAVE_SYS_MOUNT_H
#define SIOCGIFCONF_GIVES_ADDR
+#define EXIM_HAVE_OPENAT
#define HAVE_ARC4RANDOM
/* In May 2014, OpenBSD 5.5 was released which cleaned up the arc4random_* API
which removed the arc4random_stir() function. Set NOT_HAVE_ARC4RANDOM_STIR
diff --git a/src/OS/os.h-SunOS5 b/src/OS/os.h-SunOS5
index dfbd8f1af..a029161e0 100644
--- a/src/OS/os.h-SunOS5
+++ b/src/OS/os.h-SunOS5
@@ -8,6 +8,7 @@
#define HAVE_GETIPNODEBYNAME 1
#define HAVE_GETIPNODEBYADDR 1
+##define EXIM_HAVE_OPENAT
#define HAVE_KSTAT
#define LOAD_AVG_KSTAT "system_misc"