From efd2fec0e7efe154baf8e889f25b0438ae30f1d7 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sun, 23 Jul 2023 18:42:09 +0200 Subject: [PATCH] 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 + +.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/' \