ports/games/golddig/files/patch-golddig.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

10 lines
207 B
C

--- golddig.c.orig 2021-02-18 16:25:22 UTC
+++ golddig.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>