[Pkg-gnupg-commit] [gnupg2] 43/124: build: Use macOS' compatibility macros to enable all features.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Apr 5 15:55:31 UTC 2017


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

dkg pushed a commit to branch experimental
in repository gnupg2.

commit dd60e868d2bf649a33dc96e207ffd3b8ae4d35af
Author: Justus Winter <justus at g10code.com>
Date:   Wed Mar 8 13:29:39 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 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 6d35450..bd618e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -712,6 +712,10 @@ case "${host}" in
         # keeps things simple
         require_iconv=no
         ;;
+    *-apple-darwin*)
+        AC_DEFINE(_DARWIN_C_SOURCE, 900000L,
+                  Expose all libc features (__DARWIN_C_FULL).)
+        ;;
     *)
        ;;
 esac

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



More information about the Pkg-gnupg-commit mailing list