mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-21 05:07:54 +01:00
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:
parent
b4ad2f5e97
commit
2ac1cb254f
@ -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. */
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user