git: efd2fec0e7ef - main - archivers/dzip: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 23 Jul 2023 16:51:09 UTC
The branch main has been updated by bofh:

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

commit efd2fec0e7efe154baf8e889f25b0438ae30f1d7
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 16:42:09 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 16:42:09 +0000

    archivers/dzip: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 archivers/dzip/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/archivers/dzip/Makefile b/archivers/dzip/Makefile
index a5b584b37d2d..037bd9efb2e4 100644
--- a/archivers/dzip/Makefile
+++ b/archivers/dzip/Makefile
@@ -24,6 +24,12 @@ PORTDOCS=	Readme
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-extract: .SILENT
 	${REINPLACE_CMD} -e 's/ifdef BIG_ENDIAN/if BYTE_ORDER == BIG_ENDIAN/' \
 		-e 's/ifndef BIG_ENDIAN/if BYTE_ORDER == LITTLE_ENDIAN/' \