aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-03-08 11:11:04 +0000
committerJustus Winter <[email protected]>2017-03-08 11:11:04 +0000
commitb26b73d04bff10852382113ae361ea5726661510 (patch)
tree079d279d536c61293a5e6b71d9edab89fb84c34a
parentEPROTO portability fix. (diff)
downloadlibassuan-b26b73d04bff10852382113ae361ea5726661510.tar.gz
libassuan-b26b73d04bff10852382113ae361ea5726661510.zip
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 <[email protected]>
-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