mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-22 05:37:44 +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
|
attributes. So we hide the declaration in errno.h (if any) using a
|
||||||
macro. */
|
macro. */
|
||||||
#define sys_errlist sys_errlist__
|
#define sys_errlist sys_errlist__
|
||||||
|
#define sys_nerr sys_nerr__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -21,6 +22,7 @@
|
|||||||
|
|
||||||
#ifdef HAVE_SYS_ERRLIST
|
#ifdef HAVE_SYS_ERRLIST
|
||||||
#undef sys_errlist
|
#undef sys_errlist
|
||||||
|
#undef sys_nerr
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Routines imported from standard C runtime libraries. */
|
/* Routines imported from standard C runtime libraries. */
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
ignore any declaration in the system header files, and always
|
ignore any declaration in the system header files, and always
|
||||||
declare it ourselves. With luck, this will always work. */
|
declare it ourselves. With luck, this will always work. */
|
||||||
#define sys_siglist no_such_symbol
|
#define sys_siglist no_such_symbol
|
||||||
|
#define sys_nsig no_such_symbol2
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -35,7 +36,7 @@ extern char *memset ();
|
|||||||
/* Undefine the macro we used to hide the definition of sys_siglist
|
/* Undefine the macro we used to hide the definition of sys_siglist
|
||||||
found in the system header files. */
|
found in the system header files. */
|
||||||
#undef sys_siglist
|
#undef sys_siglist
|
||||||
|
#undef sys_nsig
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
# ifdef __STDC__
|
# ifdef __STDC__
|
||||||
# define NULL (void *) 0
|
# define NULL (void *) 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user