From 60273e8b2c11d42215a5707bc55e3e0d8f350e07 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 13 Feb 2017 14:58:07 +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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index a5ee77b7..ba269016 100644 --- a/configure.ac +++ b/configure.ac @@ -167,6 +167,8 @@ case "${host}" in have_ld_version_script=yes ;; *-apple-darwin*) + AC_DEFINE(_DARWIN_C_SOURCE, 900000L, + Expose all libc features (__DARWIN_C_FULL).) AC_DEFINE(_XOPEN_SOURCE, 500, Activate POSIX interface on MacOS X) ;; esac