Another port that uses C99 so base-gcc needs to be told to use it.
This diff adds -std=gnu99 for base-gcc arches and fixes the build
on at least sparc64.

ok?

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/gnome/seahorse/Makefile,v
retrieving revision 1.121
diff -u -p -r1.121 Makefile
--- Makefile    21 Jun 2020 09:39:05 -0000      1.121
+++ Makefile    27 Jun 2020 01:03:04 -0000
@@ -21,6 +21,11 @@ MODULES=             devel/dconf \
 
 MODGNOME_TOOLS=        desktop-file-utils gtk-update-icon-cache vala yelp
 
+.include <bsd.port.arch.mk>
+.if !${PROPERTIES:Mclang}
+CFLAGS +=              -std=gnu99
+.endif
+
 LIB_DEPENDS=           databases/openldap \
                        devel/libsoup \
                        net/avahi \

Reply via email to