git: 64e9410f0700 - main - databases/pxlib: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Jun 2023 12:04:05 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=64e9410f0700ec6c3ab487512ecc29b02c904e6e

commit 64e9410f0700ec6c3ab487512ecc29b02c904e6e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 11:50:05 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 12:03:43 +0000

    databases/pxlib: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 databases/pxlib/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/databases/pxlib/Makefile b/databases/pxlib/Makefile
index 394759337e15..06c033034d46 100644
--- a/databases/pxlib/Makefile
+++ b/databases/pxlib/Makefile
@@ -28,6 +28,12 @@ NLS_CONFIGURE_OFF=	--disable-nls
 NLS_USES=	gettext
 INSTALL_TARGET=	install-strip
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 pre-build-MANPAGES-off:
 	${REINPLACE_CMD} -e 's/^DOCDIR =.*/DOCDIR =/' ${WRKSRC}/Makefile