OSDN Git Service

* strerror.c (sys_nerr): Hide the OS header version.
[pf3gnuchains/gcc-fork.git] / libiberty / strerror.c
index 0dd2220..ba837e3 100644 (file)
@@ -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