Gitweb:
https://git.exim.org/exim.git/commitdiff/5f4ca3541f228b0b9b880406e70342dea5a2a7a9
Commit: 5f4ca3541f228b0b9b880406e70342dea5a2a7a9
Parent: abca11df7f354c123b0ff8a9bfb89a669d7742d4
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Dec 26 18:55:29 2020 +0000
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Sat Dec 26 18:56:20 2020 +0000
Fix build on GNU/Hurd [supports openat()]. Bug 2608
---
src/OS/os.h-GNU | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/OS/os.h-GNU b/src/OS/os.h-GNU
index 59130ef..2c3b7b5 100644
--- a/src/OS/os.h-GNU
+++ b/src/OS/os.h-GNU
@@ -1,6 +1,8 @@
/* Exim: OS-specific C header file for GNU/Hurd */
/* Copyright (c) The Exim Maintainers 2020 */
+#include <features.h>
+
#define CRYPT_H
#define GLIBC_IP_OPTIONS
#define HAVE_BSD_GETLOADAVG
@@ -25,4 +27,8 @@ typedef struct flock flock_t;
as well as any supplementary groups*/
#define OS_SETGROUPS_ZERO_DROPS_ALL
+#if _POSIX_C_SOURCE >= 200809L || _ATFILE_SOURCE
+# define EXIM_HAVE_OPENAT
+#endif
+
/* End */