From 79cb9f7b2d242a72d7fefd09e68bf0f92d6f97e8 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sat, 5 Aug 2023 17:00:25 +0200 Subject: [PATCH] games/avp: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- games/avp/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/games/avp/Makefile b/games/avp/Makefile index dfd871f34e56..f4b74cceb1c5 100644 --- a/games/avp/Makefile +++ b/games/avp/Makefile @@ -20,6 +20,12 @@ LDFLAGS_i386= -Wl,-znotext PLIST_FILES= bin/${PORTNAME} +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + do-install: ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} \ ${STAGEDIR}${PREFIX}/bin/