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
This commit is contained in:
Nathan Whitehorn 2005-11-17 00:47:53 +00:00
parent b4ad2f5e97
commit 2ac1cb254f
2 changed files with 4 additions and 1 deletions

View File

@ -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. */

View File

@ -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 @@ extern char *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__
# define NULL (void *) 0