summaryrefslogtreecommitdiff
path: root/security/gpgme
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2017-08-10 18:49:17 +0000
committertron <tron@pkgsrc.org>2017-08-10 18:49:17 +0000
commit09248851dbcf35f145411b9fd1910c50fec6dc5f (patch)
treeced6935aeb47d6e0e69c8009ad38ed6f00327182 /security/gpgme
parentb18bd1aaa60d75b145d64ea18abb11d0dda40121 (diff)
downloadpkgsrc-09248851dbcf35f145411b9fd1910c50fec6dc5f.tar.gz
Fix build under macOS Sierra and possibly older versions as well.
Diffstat (limited to 'security/gpgme')
-rw-r--r--security/gpgme/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/gpgme/Makefile b/security/gpgme/Makefile
index ee7cfad56f2..dca44d37703 100644
--- a/security/gpgme/Makefile
+++ b/security/gpgme/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.82 2017/08/01 11:48:20 ryoon Exp $
+# $NetBSD: Makefile,v 1.83 2017/08/10 18:49:17 tron Exp $
DISTNAME= gpgme-1.8.0
PKGREVISION= 1
@@ -28,6 +28,7 @@ SUBST_SED.pthread+= -e 's,@PTHREAD_LIBS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g'
SUBST_SED.pthread+= -e 's,@PTHREAD_CFLAGS@,${PTHREAD_CFLAGS},g'
SUBST_STAGE.pthread= post-patch
+CPPFLAGS.Darwin= -D_POSIX_C_SOURCE=200809L
LIBS.SunOS+= -lnsl -lsocket
# getenv_r is not detected correctly. It will be found