aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-03-08 12:29:39 +0000
committerJustus Winter <[email protected]>2017-03-08 12:31:11 +0000
commitdd60e868d2bf649a33dc96e207ffd3b8ae4d35af (patch)
treed75f12ad00f47de8d710ab148e9bb7711dafa302 /configure.ac
parentg10: Move more flags into the flag bitfield. (diff)
downloadgnupg-dd60e868d2bf649a33dc96e207ffd3b8ae4d35af.tar.gz
gnupg-dd60e868d2bf649a33dc96e207ffd3b8ae4d35af.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]>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6d35450b0..bd618e577 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