aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strerror.c
diff options
context:
space:
mode:
authorLoren J. Rittle <ljrittle@acm.org>2001-06-12 05:04:42 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2001-06-12 05:04:42 +0000
commit473c2d0bcb3f20c4e0120939e5eccc3bcd32f520 (patch)
tree4c60a8b0c2ac0437f7751109766d39b6dce8c572 /libiberty/strerror.c
parentb59a386b2ed0eedcc81f03f2620e44be9420436e (diff)
downloadgcc-473c2d0bcb3f20c4e0120939e5eccc3bcd32f520.zip
gcc-473c2d0bcb3f20c4e0120939e5eccc3bcd32f520.tar.gz
gcc-473c2d0bcb3f20c4e0120939e5eccc3bcd32f520.tar.bz2
strerror.c (sys_nerr): Hide the OS header version.
* strerror.c (sys_nerr): Hide the OS header version. * strsignal.c (sys_nsig): Likewise. From-SVN: r43242
Diffstat (limited to 'libiberty/strerror.c')
-rw-r--r--libiberty/strerror.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libiberty/strerror.c b/libiberty/strerror.c
index 0dd2220..ba837e3 100644
--- a/libiberty/strerror.c
+++ b/libiberty/strerror.c
@@ -13,6 +13,7 @@
incompatible with our later declaration, perhaps by using const
attributes. So we hide the declaration in errno.h (if any) using a
macro. */
+#define sys_nerr sys_nerr__
#define sys_errlist sys_errlist__
#endif
@@ -20,6 +21,7 @@
#include <errno.h>
#ifdef HAVE_SYS_ERRLIST
+#undef sys_nerr
#undef sys_errlist
#endif