From dd60e868d2bf649a33dc96e207ffd3b8ae4d35af Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 8 Mar 2017 13:29:39 +0100 Subject: [PATCH] build: Use macOS' compatibility macros to enable all features. * configure.ac: On macOS, use the compatibility macros to expose every feature of the libc. This is the equivalent of _GNU_SOURCE on GNU libc. -- Not defining this leads to compilation errors or superfluous warnings on macOS. GnuPG-bug-id: 2910 Signed-off-by: Justus Winter --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 6d35450b0..bd618e577 100644 --- a/configure.ac +++ b/configure.ac @@ -712,6 +712,10 @@ case "${host}" in # keeps things simple require_iconv=no ;; + *-apple-darwin*) + AC_DEFINE(_DARWIN_C_SOURCE, 900000L, + Expose all libc features (__DARWIN_C_FULL).) + ;; *) ;; esac