From 66806be2b0c32b412faae054523ac1a8957551a1 Mon Sep 17 00:00:00 2001 From: ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Tue, 12 Jun 2001 05:04:42 +0000 Subject: [PATCH] * strerror.c (sys_nerr): Hide the OS header version. * strsignal.c (sys_nsig): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43242 138bc75d-0d04-0410-961f-82ee72b054a4 --- libiberty/ChangeLog | 5 +++++ libiberty/strerror.c | 2 ++ libiberty/strsignal.c | 2 ++ 3 files changed, 9 insertions(+) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 00ad6edde2fe..ba899abc9cb0 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2001-06-11 Loren J. Rittle <ljrittle@acm.org> + + * strerror.c (sys_nerr): Hide the OS header version. + * strsignal.c (sys_nsig): Likewise. + 2001-06-10 Richard Henderson <rth@redhat.com> * concat.c: Include string.h. Fix int vs size_t usage. diff --git a/libiberty/strerror.c b/libiberty/strerror.c index 0dd2220cd73d..ba837e323320 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 diff --git a/libiberty/strsignal.c b/libiberty/strsignal.c index 5625323b71b3..2533adce2979 100644 --- a/libiberty/strsignal.c +++ b/libiberty/strsignal.c @@ -17,6 +17,7 @@ ignore any declaration in the system header files, and always declare it ourselves. With luck, this will always work. */ #define sys_siglist no_such_symbol +#define sys_nsig sys_nsig__no_such_symbol #include <stdio.h> #include <signal.h> @@ -38,6 +39,7 @@ extern PTR memset (); /* Undefine the macro we used to hide the definition of sys_siglist found in the system header files. */ #undef sys_siglist +#undef sys_nsig #ifndef NULL # ifdef __STDC__ -- GitLab