⛏️ index : buildtools.git

author Nathan Whitehorn <nwhitehorn@nowhere.fake> 2005-11-17 0:47:53.0 +00:00:00
committer Nathan Whitehorn <nwhitehorn@nowhere.fake> 2005-11-17 0:47:53.0 +00:00:00
commit
2ac1cb254f1ecb55eb374904fe7520a1d8d7a88f [patch]
tree
7286f57abce1a48e54b953c27383b774314058ff
parent
b4ad2f5e97ee57ea4494dd8edf2b272e54a36945
download
2ac1cb254f1ecb55eb374904fe7520a1d8d7a88f.tar.gz

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(-)

diff --git a/gcc/libiberty/strerror.c b/gcc/libiberty/strerror.c
index 644cc75..78f3857 100644
--- a/gcc/libiberty/strerror.c
+++ b/gcc/libiberty/strerror.c
@@ -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

/*  Routines imported from standard C runtime libraries. */
diff --git a/gcc/libiberty/strsignal.c b/gcc/libiberty/strsignal.c
index c7bb10c..75d53b8 100644
--- a/gcc/libiberty/strsignal.c
+++ b/gcc/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 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