summaryrefslogtreecommitdiff
path: root/lang/a60/patches/patch-a60-mkc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lang/a60/patches/patch-a60-mkc.inc')
-rw-r--r--lang/a60/patches/patch-a60-mkc.inc25
1 files changed, 25 insertions, 0 deletions
diff --git a/lang/a60/patches/patch-a60-mkc.inc b/lang/a60/patches/patch-a60-mkc.inc
new file mode 100644
index 00000000000..2484f8bc239
--- /dev/null
+++ b/lang/a60/patches/patch-a60-mkc.inc
@@ -0,0 +1,25 @@
+$NetBSD: patch-a60-mkc.inc,v 1.1 2014/01/02 04:02:59 dholland Exp $
+
+Don't declare own time(), and call it correctly.
+
+--- a60-mkc.inc~ 1999-04-24 23:28:10.000000000 +0000
++++ a60-mkc.inc
+@@ -224,9 +224,6 @@ b_rand ()
+ {
+ static int first_time = 1;
+ static double rnum;
+-#ifndef NO_TIME_FUNC
+- extern long time ();
+-#endif
+
+ if (first_time) {
+ first_time = 0;
+@@ -234,7 +231,7 @@ b_rand ()
+ /* sorry folks */
+ rnum = 1.0;
+ #else
+- rnum = time ((long) 0) & 0xffffffl;
++ rnum = time ((time_t *) 0) & 0xffffffl;
+ #endif
+ }
+