[Pkg-gnupg-commit] [gpgme] 60/132: build: Use macOS' compatibility macros to enable all features.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Apr 26 01:01:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gpgme.

commit 60273e8b2c11d42215a5707bc55e3e0d8f350e07
Author: Justus Winter <justus at g10code.com>
Date:   Mon Feb 13 14:58:07 2017 +0100

    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 at g10code.com>
---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index a5ee77b..ba26901 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list