From a5e7345813f4856af0722216c146641f1269b011 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sat, 24 Jun 2023 12:57:57 +0200 Subject: [PATCH] net/sniffit: Fix build with llvm16 Sponsored by: The FreeBSD Foundation --- net/sniffit/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/sniffit/Makefile b/net/sniffit/Makefile index 5c44a5560669f..40b1c93ce9613 100644 --- a/net/sniffit/Makefile +++ b/net/sniffit/Makefile @@ -18,12 +18,16 @@ GNU_CONFIGURE= yes OPTIONS_DEFINE= DOCS EXAMPLES -.include +.include .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) CFLAGS+= -Wno-error=int-conversion .endif +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/sniffit ${STAGEDIR}${PREFIX}/sbin ${INSTALL_MAN} ${WRKSRC}/man/sniffit.5 ${STAGEDIR}${MANPREFIX}/share/man/man5 @@ -40,4 +44,4 @@ do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/sample_config_file ${STAGEDIR}${EXAMPLESDIR} -.include +.include