privoxy uses C99 constructs so base-gcc needs to be told that.

This diff fixes the build for sparc64

ok?

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/privoxy/Makefile,v
retrieving revision 1.38
diff -u -p -r1.38 Makefile
--- Makefile    29 Nov 2020 19:08:14 -0000      1.38
+++ Makefile    18 Dec 2020 16:53:00 -0000
@@ -33,6 +33,11 @@ CONFIGURE_ARGS=      --with-docbook=no \
 CONFIGURE_ENV= CPPFLAGS="-Dunix -I${LOCALBASE}/include" \
                LDFLAGS="-L${LOCALBASE}/lib"
 
+.include <bsd.port.arch.mk>
+.if !${PROPERTIES:Mclang}
+CFLAGS +=               -std=gnu99
+.endif
+
 pre-configure:
        @cd ${WRKDIST} && AUTOCONF_VERSION=${AUTOCONF_VERSION} autoheader
 

Reply via email to