Skip to content

Commit

Permalink
games/nethack32: Fix build with llvm16
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 26, 2023
1 parent 1ac9dec commit 423c3ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions games/nethack32/Makefile
Expand Up @@ -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' \
Expand Down

0 comments on commit 423c3ab

Please sign in to comment.