diff options
author | Greg McGary <greg@mcgary.org> | 1997-04-18 06:43:35 +0000 |
---|---|---|
committer | Greg McGary <greg@mcgary.org> | 1997-04-18 06:43:35 +0000 |
commit | 3720d4b7a1b0ce0903450271aa3d93388e9d8781 (patch) | |
tree | 12200295d735bf3d1bcaaf8d2065547d41cea3b2 /lib/error.c | |
parent | 916418ea1284e6aa64f50eba077e48ced5944acc (diff) | |
download | idutils-3720d4b7a1b0ce0903450271aa3d93388e9d8781.tar.gz idutils-3720d4b7a1b0ce0903450271aa3d93388e9d8781.tar.bz2 idutils-3720d4b7a1b0ce0903450271aa3d93388e9d8781.zip |
imported from id-utils-3.1r3_1
Diffstat (limited to 'lib/error.c')
-rw-r--r-- | lib/error.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <djm@gnu.ai.mit.edu>. */ +#define sys_errlist sidestep_sys_errlist_declaration + #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> +#include <errno.h> #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) |