git: 4aba7651e10d - main - games/trojka: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Aug 2023 20:10:16 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=4aba7651e10d6a75c59c51adf8d7c11f223c781a commit 4aba7651e10d6a75c59c51adf8d7c11f223c781a Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-05 19:48:50 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-05 19:48:50 +0000 games/trojka: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- games/trojka/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/games/trojka/Makefile b/games/trojka/Makefile index 19fda83f49ef..13afcdcca59a 100644 --- a/games/trojka/Makefile +++ b/games/trojka/Makefile @@ -15,4 +15,10 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept USES= ncurses +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + .include <bsd.port.mk>