aboutsummaryrefslogtreecommitdiff
path: root/math/sc
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-04-25 17:58:21 +0000
committerSteve Price <steve@FreeBSD.org>1999-04-25 17:58:21 +0000
commitc381a607c57bee906cd1c79962220b01690c4096 (patch)
treec22e50d00d2196a4e8675c37bf0e81df86083f6e /math/sc
parent4a29fd906ad46c98f2ab3b28b2a7b0c60ec0020d (diff)
downloadports-c381a607c57bee906cd1c79962220b01690c4096.tar.gz
ports-c381a607c57bee906cd1c79962220b01690c4096.zip
Use time_t instead of long in a couple of places so this compiles on
a FreeBSD/Alpha box.
Notes
Notes: svn path=/head/; revision=18130
Diffstat (limited to 'math/sc')
-rw-r--r--math/sc/files/patch-ac29
1 files changed, 29 insertions, 0 deletions
diff --git a/math/sc/files/patch-ac b/math/sc/files/patch-ac
new file mode 100644
index 000000000000..b3b30937d706
--- /dev/null
+++ b/math/sc/files/patch-ac
@@ -0,0 +1,29 @@
+--- interp.c.orig Mon May 11 13:43:36 1992
++++ interp.c Tue Apr 20 18:55:25 1999
+@@ -476,7 +476,7 @@
+ dodts(mo, day, yr)
+ int mo, day, yr;
+ {
+- long trial;
++ time_t trial;
+ register struct tm *tp;
+ register int i;
+ register long jdate;
+@@ -551,15 +551,13 @@
+ int which;
+ double when;
+ {
+- long time();
+-
+ static long t_cache;
+ static struct tm tm_cache;
+ struct tm *tp;
+- long tloc;
++ time_t tloc;
+
+ if (which == NOW)
+- return (double)time((long *)0);
++ return (double)time(NULL);
+
+ tloc = (long)when;
+