From 144b8438b316d92f5c64fa872dd1a18b3d46c7f4 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sun, 6 Aug 2023 22:29:50 +0200 Subject: net-p2p/opendchub: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- net-p2p/opendchub/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net-p2p/opendchub/Makefile b/net-p2p/opendchub/Makefile index 7a6b69e944a5..4cf53747c3be 100644 --- a/net-p2p/opendchub/Makefile +++ b/net-p2p/opendchub/Makefile @@ -20,6 +20,12 @@ OPTIONS_DEFINE= DOCS PORTDOCS= README configfiles general scriptdoc PLIST_FILES= bin/${PORTNAME} +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + pre-install: @${CHMOD} a+rx ${WRKSRC}/install-sh -- cgit v1.2.3