Need to define __DARWIN_UNIX03 to use unsetenv(3) which return integer. Resolves build on Tiger via https://trac.macports.org/ticket/56099diff -r1.71 -r1.72 pkgsrc/security/libgpg-error/Makefile
(sevan)
@@ -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-*)