Perform the usual C99 dance when using base-gcc

Fixes the build on sparc64
This commit is contained in:
kmos 2022-05-23 20:23:02 +00:00
parent b6bc6ffdab
commit e14bede6b9
1 changed files with 5 additions and 0 deletions

View File

@ -49,4 +49,9 @@ CONFIGURE_ENV += ac_cv_header_ansidecl_h=no
TEST_DEPENDS= xmlsec-${VERSION}:security/xmlsec
TEST_FLAGS= ABS_BUILDDIR="${WRKSRC}"
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mclang}
CFLAGS += -std=gnu99
.endif
.include <bsd.port.mk>