summaryrefslogtreecommitdiff
path: root/math/sc/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-11-10 17:23:17 +0000
committerjoerg <joerg@pkgsrc.org>2005-11-10 17:23:17 +0000
commit06e54c043c7e279a61023a0f04005213a8d6b255 (patch)
treea6ae7364e93eaeee696c6e2b9aadbca1b4d66df7 /math/sc/patches
parent8782fe7b0b738487ec1980558d095ce5a9881a3f (diff)
downloadpkgsrc-06e54c043c7e279a61023a0f04005213a8d6b255.tar.gz
Use errno from errno.h, don't define it manually. Fix a case
where errno.h was not included at all.
Diffstat (limited to 'math/sc/patches')
-rw-r--r--math/sc/patches/patch-ac25
-rw-r--r--math/sc/patches/patch-ad13
2 files changed, 33 insertions, 5 deletions
diff --git a/math/sc/patches/patch-ac b/math/sc/patches/patch-ac
index fbd1ebe6f76..355fc3e34c7 100644
--- a/math/sc/patches/patch-ac
+++ b/math/sc/patches/patch-ac
@@ -1,8 +1,23 @@
-$NetBSD: patch-ac,v 1.2 2000/01/12 20:30:42 wiz Exp $
+$NetBSD: patch-ac,v 1.3 2005/11/10 17:23:18 joerg Exp $
---- interp.c.orig Mon May 11 13:43:36 1992
-+++ interp.c Tue Apr 20 18:55:25 1999
-@@ -476,7 +476,7 @@
+--- interp.c.orig 1992-05-11 18:43:36.000000000 +0000
++++ interp.c
+@@ -21,13 +21,13 @@
+ #include <ieeefp.h>
+ #endif /* IEEE_MATH */
+
++#include <errno.h>
+ #include <math.h>
+ #include <signal.h>
+ #include <setjmp.h>
+ #include <stdio.h>
+ #include <ctype.h>
+
+-extern int errno; /* set by math functions */
+ #ifdef BSD42
+ #include <strings.h>
+ #include <sys/time.h>
+@@ -476,7 +476,7 @@ double
dodts(mo, day, yr)
int mo, day, yr;
{
@@ -11,7 +26,7 @@ $NetBSD: patch-ac,v 1.2 2000/01/12 20:30:42 wiz Exp $
register struct tm *tp;
register int i;
register long jdate;
-@@ -551,15 +551,13 @@
+@@ -551,15 +551,13 @@ dotime(which, when)
int which;
double when;
{
diff --git a/math/sc/patches/patch-ad b/math/sc/patches/patch-ad
new file mode 100644
index 00000000000..52f5a68bb04
--- /dev/null
+++ b/math/sc/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2005/11/10 17:23:18 joerg Exp $
+
+--- cmds.c.orig 2005-11-10 17:17:35.000000000 +0000
++++ cmds.c
+@@ -39,8 +39,6 @@ void openrow();
+ void syncref();
+ void unspecial();
+
+-extern int errno;
+-
+ /* a linked list of free [struct ent]'s, uses .next as the pointer */
+ extern struct ent *freeents;
+