git: 144b8438b316 - main - net-p2p/opendchub: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 06 Aug 2023 20:30:35 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=144b8438b316d92f5c64fa872dd1a18b3d46c7f4

commit 144b8438b316d92f5c64fa872dd1a18b3d46c7f4
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 20:29:50 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 20:30:19 +0000

    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 <bsd.port.options.mk>
+
+.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