summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authordholland <dholland>2014-01-02 04:02:59 +0000
committerdholland <dholland>2014-01-02 04:02:59 +0000
commit2ac402124aa0bc7d1a7742b642e5ace9d43bf1ec (patch)
treeefc19b2db1e90f526b6a6a20cac11f3bf2a6987f /lang
parent2c43108d17c6fbbb77ae9715ed218b0ae316592f (diff)
downloadpkgsrc-2ac402124aa0bc7d1a7742b642e5ace9d43bf1ec.tar.gz
Use time(3) correctly. PKGREVISION -> 1 as it may affect the compiler output.
Diffstat (limited to 'lang')
-rw-r--r--lang/a60/Makefile3
-rw-r--r--lang/a60/distinfo3
-rw-r--r--lang/a60/patches/patch-a60-mkc.inc25
3 files changed, 29 insertions, 2 deletions
diff --git a/lang/a60/Makefile b/lang/a60/Makefile
index 032385c541d..aedb03b045c 100644
--- a/lang/a60/Makefile
+++ b/lang/a60/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2013/04/06 20:27:21 rodent Exp $
+# $NetBSD: Makefile,v 1.15 2014/01/02 04:02:59 dholland Exp $
DISTNAME= a60-0.20a
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.ibr.cs.tu-bs.de/pub/local/algol60/
diff --git a/lang/a60/distinfo b/lang/a60/distinfo
index d6317869c64..6faeac850ff 100644
--- a/lang/a60/distinfo
+++ b/lang/a60/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.4 2005/02/24 09:03:05 agc Exp $
+$NetBSD: distinfo,v 1.5 2014/01/02 04:02:59 dholland Exp $
SHA1 (a60-0.20a.tar.gz) = cc643812cdd6016ca0dd9d29ed4a65e8ce03fddc
RMD160 (a60-0.20a.tar.gz) = c2cbe06da31c98f9618f76d8770c1f3123550feb
Size (a60-0.20a.tar.gz) = 626754 bytes
+SHA1 (patch-a60-mkc.inc) = 542bd73d7d564b87c32539375d5bc16da75e8178
SHA1 (patch-aa) = 332fdb48b105bd2483f329630ff4688edba3b54e
SHA1 (patch-ab) = 5808796f29e2bd0056abf3e780c82d0740539206
SHA1 (patch-ac) = 069546013d35b22048675ce69e3b8ad20e65e85c
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
+ }
+