ports/games/golddig/files/patch-shared.c
Adriaan de Groot c0aeda4368 Fix games/golddig in the face of picky compilers
C (and linkers) has changed a little since 2001, so patch up the
places where "extern" is needed, add <string.h> and missing
cases in switch() to silence warnings. golddig runs nearly as
well as on my Apple //c (see games/kgoldrunner for a newer take
on the same concept, though)

Not taking maintainership, I just spotted this among the recent
fallout-cleanup and thought "I can do that while I wait for the
potatoes to boil."
2021-02-18 16:37:39 +00:00

12 lines
264 B
C

--- shared.c.orig 2021-02-18 15:46:01 UTC
+++ shared.c
@@ -14,6 +14,9 @@
#include <X11/Xutil.h>
#include <errno.h>
#include <string.h>
+
+#define GOLDDIG_EXTERN
+
#include <golddig.h>
/* Include all the bitmaps for the terrain blocks */
#include <bitmaps.h>