Skip to content

Commit

Permalink
net/sniffit: Fix build with llvm16
Browse files Browse the repository at this point in the history
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jun 24, 2023
1 parent 6a0bccd commit a5e7345
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions net/sniffit/Makefile
Expand Up @@ -18,12 +18,16 @@ GNU_CONFIGURE= yes

OPTIONS_DEFINE= DOCS EXAMPLES

.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>

.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
Expand All @@ -40,4 +44,4 @@ do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/sample_config_file ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.post.mk>
.include <bsd.port.mk>

0 comments on commit a5e7345

Please sign in to comment.