From 6cafaa52b4d335f4d7f22fb4cf594575a73c0f72 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Wed, 26 Jul 2023 11:39:44 +0200 Subject: [PATCH] misc/bb: Fix build with llvm16 Sponsored by: The FreeBSD Foundation --- misc/bb/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/bb/Makefile b/misc/bb/Makefile index 07ce9e14b555..834adea34e96 100644 --- a/misc/bb/Makefile +++ b/misc/bb/Makefile @@ -27,6 +27,10 @@ OPTIONS_DEFINE= DOCS USES+= compiler:gcc-c++11-lib .endif +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + pre-patch: @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -E -e "s@#include +@#include @g" \ -e 's, REGISTERS \(3\),,g'