summaryrefslogtreecommitdiff
path: root/lang/a60/patches
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2014-06-29 04:34:07 +0000
committerdholland <dholland@pkgsrc.org>2014-06-29 04:34:07 +0000
commit3fda37862af274665f686d0bdc071aeb592c01c2 (patch)
tree17bb33ba1c3e67b8b0223144460b7d9840c80776 /lang/a60/patches
parentc73b056f40f953acc746952c66d8a4e0d264d19f (diff)
downloadpkgsrc-3fda37862af274665f686d0bdc071aeb592c01c2.tar.gz
Calling time() requires <time.h>. My fault, I think, and/or NetBSD has
or had a namespace pollution issue exposing time.h improperly. Should fix the MacOS build. XXX: on MacOS the configure script concludes that stdlib.h, unistd.h, XXX: and string.h are all missing. I have no idea why this would be XXX: but someone with access to config.log needs to investigate.
Diffstat (limited to 'lang/a60/patches')
-rw-r--r--lang/a60/patches/patch-a60-mkc.inc16
1 files changed, 12 insertions, 4 deletions
diff --git a/lang/a60/patches/patch-a60-mkc.inc b/lang/a60/patches/patch-a60-mkc.inc
index 2484f8bc239..ddd9b20c25a 100644
--- a/lang/a60/patches/patch-a60-mkc.inc
+++ b/lang/a60/patches/patch-a60-mkc.inc
@@ -1,10 +1,18 @@
-$NetBSD: patch-a60-mkc.inc,v 1.1 2014/01/02 04:02:59 dholland Exp $
+$NetBSD: patch-a60-mkc.inc,v 1.2 2014/06/29 04:34:07 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.orig 1999-04-24 23:28:10.000000000 +0000
+++ a60-mkc.inc
-@@ -224,9 +224,6 @@ b_rand ()
+@@ -31,6 +31,7 @@
+ */
+ #include <stdio.h>
+ #include <math.h>
++#include <time.h>
+
+ #ifdef __STDC__
+ #include <stdarg.h>
+@@ -224,9 +225,6 @@ b_rand ()
{
static int first_time = 1;
static double rnum;
@@ -14,7 +22,7 @@ Don't declare own time(), and call it correctly.
if (first_time) {
first_time = 0;
-@@ -234,7 +231,7 @@ b_rand ()
+@@ -234,7 +232,7 @@ b_rand ()
/* sorry folks */
rnum = 1.0;
#else