From 3720d4b7a1b0ce0903450271aa3d93388e9d8781 Mon Sep 17 00:00:00 2001 From: Greg McGary Date: Fri, 18 Apr 1997 06:43:35 +0000 Subject: imported from id-utils-3.1 --- lib/error.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/error.c') diff --git a/lib/error.c b/lib/error.c index 797b697..42e2c6c 100644 --- a/lib/error.c +++ b/lib/error.c @@ -17,11 +17,14 @@ /* Written by David MacKenzie . */ +#define sys_errlist sidestep_sys_errlist_declaration + #ifdef HAVE_CONFIG_H #include #endif #include +#include #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC # if __STDC__ @@ -68,9 +71,8 @@ static char * private_strerror (errnum) int errnum; { -#if !HAVE_DECL_SYS_ERRLIST +#undef sys_errlist extern char *sys_errlist[]; -#endif extern int sys_nerr; if (errnum > 0 && errnum <= sys_nerr) -- cgit v1.2.3