Fixed libiberty to build on FreeBSD. A few more problems to go.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14978 a95241bf-73f2-0310-859d-f6bbb57e9c96
Diff
gcc/libiberty/strerror.c | 2 ++
gcc/libiberty/strsignal.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
@@ -14,6 +14,7 @@
attributes. So we hide the declaration in errno.h (if any) using a
macro. */
#define sys_errlist sys_errlist__
#define sys_nerr sys_nerr__
#endif
#include <stdio.h>
@@ -21,6 +22,7 @@
#ifdef HAVE_SYS_ERRLIST
#undef sys_errlist
#undef sys_nerr
#endif
@@ -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 no_such_symbol2
#include <stdio.h>
#include <signal.h>
@@ -35,7 +36,7 @@
/* 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__
# define NULL (void *) 0