Wed Jul 3 17:17:59 2019 UTC ()
Need to define __DARWIN_UNIX03 to use unsetenv(3) which return integer.
Resolves build on Tiger
via https://trac.macports.org/ticket/56099


(sevan)
diff -r1.71 -r1.72 pkgsrc/security/libgpg-error/Makefile

cvs diff -r1.71 -r1.72 pkgsrc/security/libgpg-error/Makefile (expand / switch to context diff)
--- pkgsrc/security/libgpg-error/Makefile 2019/03/20 05:43:20 1.71
+++ pkgsrc/security/libgpg-error/Makefile 2019/07/03 17:17:58 1.72
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2019/03/20 05:43:20 adam Exp $
+# $NetBSD: Makefile,v 1.72 2019/07/03 17:17:58 sevan Exp $
 
 DISTNAME=	libgpg-error-1.36
 CATEGORIES=	security
@@ -24,6 +24,10 @@
 CONFIGURE_ENV+=		CC_FOR_BUILD=${NATIVE_CC:Q}
 .else
 CONFIGURE_ENV+=		CC_FOR_BUILD=${CC:Q}\ ${CFLAGS:M*:Q}
+.endif
+
+.if !empty(MACHINE_PLATFORM:MDarwin-8.*-powerpc)
+CFLAGS+= 	-D__DARWIN_UNIX03
 .endif
 
 .if !empty(MACHINE_PLATFORM:MSunOS-5.10-*)