From: Jeremy Harris Date: Sat, 27 Jun 2020 10:27:59 +0000 (+0100) Subject: Fix build for non-Linux platforms having openat. X-Git-Url: https://git.exim.org/users/heiko/exim.git/commitdiff_plain/c8ffb42d9a821fd7dfeeee1494f6be88cdf7b264 Fix build for non-Linux platforms having openat. Broken-by: 1077d3c3f9 --- 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"