summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2017-03-08 12:11:04 +0100
committerJustus Winter <justus@g10code.com>2017-03-08 12:11:04 +0100
commitb26b73d04bff10852382113ae361ea5726661510 (patch)
tree079d279d536c61293a5e6b71d9edab89fb84c34a
parent8ab3b9273524bd344bdb90dd5d3bc8e5f53ead6e (diff)
downloadlibassuan-b26b73d04bff10852382113ae361ea5726661510.tar.gz
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 <justus@g10code.com>
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
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