Thu Aug 10 18:49:17 2017 UTC ()
Fix build under macOS Sierra and possibly older versions as well.


(tron)
diff -r1.82 -r1.83 pkgsrc/security/gpgme/Makefile

cvs diff -r1.82 -r1.83 pkgsrc/security/gpgme/Makefile (expand / switch to context diff)
--- pkgsrc/security/gpgme/Makefile 2017/08/01 11:48:20 1.82
+++ pkgsrc/security/gpgme/Makefile 2017/08/10 18:49:17 1.83
@@ -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_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