Gitweb:
https://git.exim.org/exim.git/commitdiff/c8ffb42d9a821fd7dfeeee1494f6be88cdf7b264
Commit: c8ffb42d9a821fd7dfeeee1494f6be88cdf7b264
Parent: f5ee670dc5eb90c68ee684f478598bd9af6fbf36
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Jun 27 11:27:59 2020 +0100
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Sat Jun 27 11:27:59 2020 +0100
Fix build for non-Linux platforms having openat.
Broken-by: 1077d3c3f9
---
src/OS/os.h-Darwin | 1 +
src/OS/os.h-FreeBSD | 1 +
src/OS/os.h-OpenBSD | 1 +
src/OS/os.h-SunOS5 | 1 +
4 files changed, 4 insertions(+)
diff --git a/src/OS/os.h-Darwin b/src/OS/os.h-Darwin
index 7e3a67c..1a557d8 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 73d9976..548a82d 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 dde779f..dc5dc02 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 dfbd8f1..a029161 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"