diff options
author | joerg <joerg@pkgsrc.org> | 2005-11-10 17:23:17 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-11-10 17:23:17 +0000 |
commit | 0e55cfe8970b05f9815041dbf49a4379711dff2b (patch) | |
tree | a6ae7364e93eaeee696c6e2b9aadbca1b4d66df7 /math/sc/patches | |
parent | ac9b8ab5bd23072ad31ea6622a3560f80bc8d0af (diff) | |
download | pkgsrc-0e55cfe8970b05f9815041dbf49a4379711dff2b.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-ac | 25 | ||||
-rw-r--r-- | math/sc/patches/patch-ad | 13 |
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; + |