diff --git a/games/gtkradiant/Makefile b/games/gtkradiant/Makefile index 75feef53f813..c50a6ea0e596 100644 --- a/games/gtkradiant/Makefile +++ b/games/gtkradiant/Makefile @@ -59,8 +59,21 @@ post-patch: # Do not #include header which is deprecated @${REINPLACE_CMD} -e '/#include/s, +-#ifndef WIN32 ++#ifdef NeXT + #include + #else + #include diff --git a/games/gtkradiant/files/patch-tools__quake3__q3map2__q3map2.h b/games/gtkradiant/files/patch-tools__quake3__q3map2__q3map2.h new file mode 100644 index 000000000000..1a3145cbf605 --- /dev/null +++ b/games/gtkradiant/files/patch-tools__quake3__q3map2__q3map2.h @@ -0,0 +1,13 @@ +--- tools/quake3/q3map2/q3map2.h.orig 2006-02-10 22:01:20 UTC ++++ tools/quake3/q3map2/q3map2.h +@@ -939,6 +939,10 @@ + } + surfaceType_t; + ++// Q_EXTERN is defined only later :( ++#ifndef MAIN_C ++extern ++#endif + char *surfaceTypes[ NUM_SURFACE_TYPES ] + #ifndef MAIN_C + ;