From c74abea15ca6d76c4cc19bf340129ab2f4fba96c Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 10 Sep 1996 13:58:10 +0000 Subject: Make this compile. they use a variable "abort" which is prototyped. --- contrib/gperf/src/stderr.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'contrib') diff --git a/contrib/gperf/src/stderr.c b/contrib/gperf/src/stderr.c index 3f00dd5..f4e7aa1 100644 --- a/contrib/gperf/src/stderr.c +++ b/contrib/gperf/src/stderr.c @@ -20,6 +20,9 @@ along with GNU GPERF; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include +#ifdef _HAVE_PARAM_H +#include +#endif #include "stderr.h" /* Holds the name of the currently active program. */ @@ -50,11 +53,13 @@ report_error (va_alist) va_dcl { extern int errno, sys_nerr; +#if (! defined(BSD) || (BSD < 199103)) extern char *sys_errlist[]; +#endif /* not 4.3 Net2 based */ typedef void (*PTF)(); typedef char *CHARP; va_list argp; - int abort = 0; + int abort_flag = 0; char *format; va_start (argp); @@ -68,7 +73,7 @@ report_error (va_alist) switch(*++format) { case '%' : putc ('%', stderr); break; - case 'a' : abort = 1; break; + case 'a' : abort_flag = 1; break; case 'c' : putc (va_arg (argp, int), stderr); break; case 'd' : fprintf (stderr, "%d", va_arg (argp, int)); break; case 'e' : (*va_arg (argp, PTF))(); break; @@ -83,7 +88,7 @@ report_error (va_alist) case 's' : fputs (va_arg (argp, CHARP), stderr); break; } } - if (abort) + if (abort_flag) exit (1); } va_end (argp); -- cgit v1.1