diff options
author | Jeff Law <law@gcc.gnu.org> | 1998-05-15 17:42:58 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-05-15 17:42:58 -0600 |
commit | 3affd5f0f4b9f9e7d3ecac2881604692ae52681e (patch) | |
tree | e6ad5341787fa143c7cb10c7384c960aecfa1ede /libiberty/strerror.c | |
parent | fe806bddb81ada7a8797cf387ff7c1427ed3d6bb (diff) | |
download | gcc-3affd5f0f4b9f9e7d3ecac2881604692ae52681e.zip gcc-3affd5f0f4b9f9e7d3ecac2881604692ae52681e.tar.gz gcc-3affd5f0f4b9f9e7d3ecac2881604692ae52681e.tar.bz2 |
Update from Cygnus libiberty.
libiberty uses autoconf now.
From-SVN: r19791
Diffstat (limited to 'libiberty/strerror.c')
-rw-r--r-- | libiberty/strerror.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libiberty/strerror.c b/libiberty/strerror.c index f5e2eeb..644cc75 100644 --- a/libiberty/strerror.c +++ b/libiberty/strerror.c @@ -7,7 +7,7 @@ #include "config.h" -#ifndef NEED_sys_errlist +#ifdef HAVE_SYS_ERRLIST /* Note that errno.h (not sure what OS) or stdio.h (BSD 4.4, at least) might declare sys_errlist in a way that the compiler might consider incompatible with our later declaration, perhaps by using const @@ -19,7 +19,7 @@ #include <stdio.h> #include <errno.h> -#ifndef NEED_sys_errlist +#ifdef HAVE_SYS_ERRLIST #undef sys_errlist #endif @@ -55,12 +55,12 @@ struct error_info { int value; /* The numeric value from <errno.h> */ const char *name; /* The equivalent symbolic value */ -#ifdef NEED_sys_errlist +#ifndef HAVE_SYS_ERRLIST const char *msg; /* Short message about this value */ #endif }; -#ifdef NEED_sys_errlist +#ifndef HAVE_SYS_ERRLIST # define ENTRY(value, name, msg) {value, name, msg} #else # define ENTRY(value, name, msg) {value, name} @@ -455,7 +455,7 @@ static int num_error_names = 0; same name, it differs from other implementations in that it is dynamically initialized rather than statically initialized. */ -#ifdef NEED_sys_errlist +#ifndef HAVE_SYS_ERRLIST static int sys_nerr; static const char **sys_errlist; @@ -532,7 +532,7 @@ init_error_tables () } } -#ifdef NEED_sys_errlist +#ifndef HAVE_SYS_ERRLIST /* Now attempt to allocate the sys_errlist table, zero it out, and then initialize it from the statically initialized error_table. */ @@ -595,7 +595,7 @@ errno_max () return (maxsize - 1); } -#ifdef NEED_strerror +#ifndef HAVE_STRERROR /* @@ -634,7 +634,7 @@ strerror (errnoval) char *msg; static char buf[32]; -#ifdef NEED_sys_errlist +#ifndef HAVE_SYS_ERRLIST if (error_names == NULL) { @@ -668,7 +668,7 @@ strerror (errnoval) return (msg); } -#endif /* NEED_strerror */ +#endif /* ! HAVE_STRERROR */ /* |