From faae7b2bfefde7220d86633aec6042c22a82a20e Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Wed, 2 Aug 2023 18:21:58 +0200 Subject: irc/ninja: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- irc/ninja/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'irc') diff --git a/irc/ninja/Makefile b/irc/ninja/Makefile index a135e5505484..f6f1e7c3e511 100644 --- a/irc/ninja/Makefile +++ b/irc/ninja/Makefile @@ -13,6 +13,12 @@ GNU_CONFIGURE= yes CONFIGURE_ENV= IRCLIB="${DATADIR}" MAKE_JOBS_UNSAFE= yes +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ninja ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/ninjawserv ${STAGEDIR}${PREFIX}/bin -- cgit v1.2.3