git: 2f960e39ca57 - main - sysutils/socklog: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Aug 2023 23:52:39 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=2f960e39ca571ceae0d5c645b806a3377179bff3 commit 2f960e39ca571ceae0d5c645b806a3377179bff3 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-06 23:14:06 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-06 23:52:28 +0000 sysutils/socklog: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- sysutils/socklog/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sysutils/socklog/Makefile b/sysutils/socklog/Makefile index 28209b5403b6..f793aa85428e 100644 --- a/sysutils/socklog/Makefile +++ b/sysutils/socklog/Makefile @@ -22,6 +22,12 @@ PORTDOCS= ${TEXTDOCS} ${HTMLDOCS} OPTIONS_DEFINE= DOCS +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + do-configure: ${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc ${ECHO_CMD} "${CC} -s ${LDFLAGS}" > ${WRKSRC}/src/conf-ld