mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 04:00:41 -04:00
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."
12 lines
264 B
C
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>
|