From b26b73d04bff10852382113ae361ea5726661510 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 8 Mar 2017 12:11:04 +0100 Subject: 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dc987f7..963a76b 100644 --- a/configure.ac +++ b/configure.ac @@ -114,7 +114,8 @@ case "${host}" in ;; *-apple-darwin*) AC_DEFINE(_XOPEN_SOURCE, 500, Activate POSIX interface on MacOS X) - AC_DEFINE(_DARWIN_C_SOURCE, 1, Activate CMSG_LEN/CMSG_SPACE on MacOS X) + AC_DEFINE(_DARWIN_C_SOURCE, 900000L, + Expose all libc features (__DARWIN_C_FULL)) ;; esac -- cgit v1.2.3