git: b9164f1a0d2d - main - net-mgmt/sendip: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Jun 2023 16:55:11 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=b9164f1a0d2db2a9f871b5ca5da1d5e66a75b184 commit b9164f1a0d2db2a9f871b5ca5da1d5e66a75b184 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-09 13:41:01 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-09 16:55:03 +0000 net-mgmt/sendip: Fix build with llvm15 Approved by: portmgr (blanket) --- net-mgmt/sendip/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net-mgmt/sendip/Makefile b/net-mgmt/sendip/Makefile index 067fce76b2cd..03e4088e07b7 100644 --- a/net-mgmt/sendip/Makefile +++ b/net-mgmt/sendip/Makefile @@ -22,6 +22,10 @@ USE_LDCONFIG= yes CFLAGS+= -Wno-empty-body -Wno-constant-conversion .endif +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=deprecated-non-prototype -Wno-error=strict-prototypes +.endif + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sendip .for slib in ipv4.so ipv6.so icmp.so tcp.so udp.so rip.so ripng.so ntp.so \