diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-07-26 09:00:52 +0000 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-07-26 09:40:12 +0000 |
commit | 423c3ab55d0759d882ffe6afcae803c67e766328 (patch) | |
tree | 47dd51d6a5197684ab27a863601738bd5347b067 | |
parent | 1ac9dec204b45f86c417aafb273874e3918cb3ce (diff) | |
download | ports-423c3ab55d0759d882ffe6afcae803c67e766328.tar.gz ports-423c3ab55d0759d882ffe6afcae803c67e766328.zip |
games/nethack32: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | games/nethack32/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/games/nethack32/Makefile b/games/nethack32/Makefile index 89f91c16aa0d..88ec84832b94 100644 --- a/games/nethack32/Makefile +++ b/games/nethack32/Makefile @@ -40,6 +40,10 @@ PLIST_SUB+= HACKLINK="" PLIST_SUB+= HACKLINK="@comment " .endif +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + post-patch: .for f in include/config.h sys/unix/Makefile.top sys/unix/Makefile.doc @${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g' \ |