summaryrefslogtreecommitdiff
path: root/games/moria/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'games/moria/patches/patch-af')
-rw-r--r--games/moria/patches/patch-af24
1 files changed, 24 insertions, 0 deletions
diff --git a/games/moria/patches/patch-af b/games/moria/patches/patch-af
new file mode 100644
index 00000000000..06af9c945c3
--- /dev/null
+++ b/games/moria/patches/patch-af
@@ -0,0 +1,24 @@
+$NetBSD: patch-af,v 1.1 1999/08/30 02:35:10 simonb Exp $
+--- source/death.c.orig Fri Jul 22 11:47:16 1994
++++ source/death.c Sun Aug 29 09:28:44 1999
+@@ -126,7 +126,7 @@
+ #ifndef VMS
+ #ifndef MAC
+ #if !defined(ATARIST_MWC) && !defined(AMIGA)
+-long time();
++time_t time();
+ #endif
+ #endif
+ #endif
+@@ -144,9 +144,9 @@
+ #ifdef MAC
+ clockvar = time((time_t *) 0);
+ #else
+- clockvar = time((long *) 0);
++ clockvar = time((time_t *) 0);
+ #endif
+- tmp = ctime(&clockvar);
++ tmp = ctime((time_t *)&clockvar);
+ tmp[10] = '\0';
+ (void) strcpy(day, tmp);
+ }