aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-02-13 13:58:07 +0000
committerJustus Winter <[email protected]>2017-02-13 14:08:28 +0000
commit60273e8b2c11d42215a5707bc55e3e0d8f350e07 (patch)
treecc7cbd681fc87aaeeb938212416926e77565baa3
parentRevert "Disable fd-passing for Apple." (diff)
downloadgpgme-60273e8b2c11d42215a5707bc55e3e0d8f350e07.tar.gz
gpgme-60273e8b2c11d42215a5707bc55e3e0d8f350e07.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.ac2
1 files changed, 2 insertions, 0 deletions
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