pkgsrc/devel/spiff/patches/patch-af
rillig 1cd45fbf5c Made the package work on Solaris, which didn't like redeclarations of
standard functions:

"misc.h", line 42: identifier redeclared: sprintf
2007-10-05 21:13:59 +00:00

29 lines
603 B
Text

$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