diff options
author | rillig <rillig@pkgsrc.org> | 2007-10-05 21:13:59 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-10-05 21:13:59 +0000 |
commit | 1cd45fbf5cd50069f80e20f4979943acf5a511b1 (patch) | |
tree | 931816166f42e731e14337fa875480ee817ab229 /devel/spiff/patches | |
parent | cfa3ec308ee4b18d013f09b30cc317a9b414935b (diff) | |
download | pkgsrc-1cd45fbf5cd50069f80e20f4979943acf5a511b1.tar.gz |
Made the package work on Solaris, which didn't like redeclarations of
standard functions:
"misc.h", line 42: identifier redeclared: sprintf
Diffstat (limited to 'devel/spiff/patches')
-rw-r--r-- | devel/spiff/patches/patch-ab | 10 | ||||
-rw-r--r-- | devel/spiff/patches/patch-af | 29 |
2 files changed, 35 insertions, 4 deletions
diff --git a/devel/spiff/patches/patch-ab b/devel/spiff/patches/patch-ab index efc411a500b..b9eef8dbac7 100644 --- a/devel/spiff/patches/patch-ab +++ b/devel/spiff/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.2 2004/07/04 16:21:59 jschauma Exp $ +$NetBSD: patch-ab,v 1.3 2007/10/05 21:13:59 rillig Exp $ --- misc.h 2001/10/15 10:01:22 1.1 +++ misc.h 2001/10/15 10:02:19 @@ -11,18 +11,20 @@ $NetBSD: patch-ab,v 1.2 2004/07/04 16:21:59 jschauma Exp $ /* ** make sure that if we have a XENIX system, that ** we also treat it as an AT and T derivative -@@ -36,12 +38,14 @@ +@@ -36,12 +38,16 @@ /* ** lines needed to shut up lint */ -+#if !(defined(BSD) && BSD >= 199306) && !defined(__linux__) ++#if defined(__STDC__) ++#include <string.h> ++#else extern char *sprintf(); extern char *strcat(); extern char *strncat(); extern char *strcpy(); extern char *strncpy(); extern char *malloc(); -+#endif /* BSD */ ++#endif extern void Z_complain(); extern void Z_fatal(); diff --git a/devel/spiff/patches/patch-af b/devel/spiff/patches/patch-af new file mode 100644 index 00000000000..7dc36c37ed3 --- /dev/null +++ b/devel/spiff/patches/patch-af @@ -0,0 +1,29 @@ +$NetBSD: patch-af,v 1.1 2007/10/05 21:14:00 rillig Exp $ + +Programming in C before 1989 must have been really painful. + +--- parse.c.orig 1990-02-05 21:17:19.000000000 +0100 ++++ parse.c 2007-10-05 23:08:43.000000000 +0200 +@@ -68,9 +68,6 @@ static + _P_in_alpha(chr) + char chr; + { +-#ifndef ATT +- extern int index(); +-#endif + /* + ** special case when string terminator + ** is handed to us +@@ -78,11 +75,7 @@ char chr; + if ('\0' == chr) + return(0); + +-#ifdef ATT +- return((int) strchr(_P_alpha,chr)); +-#else +- return((int) index(_P_alpha,chr)); +-#endif ++ return strchr(_P_alpha,chr) != NULL; + } + + void |