diff options
author | Justus Winter <[email protected]> | 2017-02-13 13:58:07 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-02-13 14:08:28 +0000 |
commit | 60273e8b2c11d42215a5707bc55e3e0d8f350e07 (patch) | |
tree | cc7cbd681fc87aaeeb938212416926e77565baa3 | |
parent | Revert "Disable fd-passing for Apple." (diff) | |
download | gpgme-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.ac | 2 |
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 |