Skip to content

Commit

Permalink
games/netradiant: unbreak the port's build against Clang 16
Browse files Browse the repository at this point in the history
Reported by:	pkg-fallout
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jun 28, 2023
1 parent 2c1a536 commit 7e8b07b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion games/netradiant/Makefile
Expand Up @@ -46,7 +46,9 @@ GAMES= DarkPlaces Doom3 ET Neverball Nexuiz OpenArena Osirion Quake1 \
GAMEPACK_DISTFILES= ${GAMES:S/$/Pack.zip:gp/}

post-patch:
@${REINPLACE_CMD} -e '/#include/s,<sys/dir,&ent,' \
@${REINPLACE_CMD} -e 's,register ,,' \
${WRKSRC}/libs/container/hashfunc.h
@${REINPLACE_CMD} -e '/#include/s,sys/dir,dirent,' \
${WRKSRC}/tools/quake2/qdata/qdata.c
@${REINPLACE_CMD} -e 's,#ifndef WIN32,#ifdef NeXT,' \
${WRKSRC}/tools/quake3/q3data/q3data.c
Expand Down
2 changes: 1 addition & 1 deletion games/netradiant/files/patch-Makefile
Expand Up @@ -5,7 +5,7 @@
endif

-CFLAGS_COMMON = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fno-strict-aliasing
+CFLAGS_COMMON = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fcommon
+CFLAGS_COMMON = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-implicit-function-declaration -Wno-unused-parameter -fcommon
CPPFLAGS_COMMON =
LDFLAGS_COMMON =
LIBS_COMMON =
Expand Down

0 comments on commit 7e8b07b

Please sign in to comment.