diff options
Diffstat (limited to 'libc/upstream-netbsd/android')
-rw-r--r-- | libc/upstream-netbsd/android/include/fd_setsize.h | 1 | ||||
-rw-r--r-- | libc/upstream-netbsd/android/include/namespace.h | 5 | ||||
-rw-r--r-- | libc/upstream-netbsd/android/include/netbsd-compat.h | 6 |
3 files changed, 4 insertions, 8 deletions
diff --git a/libc/upstream-netbsd/android/include/fd_setsize.h b/libc/upstream-netbsd/android/include/fd_setsize.h index e69de29..41bfcb7 100644 --- a/libc/upstream-netbsd/android/include/fd_setsize.h +++ b/libc/upstream-netbsd/android/include/fd_setsize.h @@ -0,0 +1 @@ +#include <sys/select.h> diff --git a/libc/upstream-netbsd/android/include/namespace.h b/libc/upstream-netbsd/android/include/namespace.h index 5df543c..630ea9b 100644 --- a/libc/upstream-netbsd/android/include/namespace.h +++ b/libc/upstream-netbsd/android/include/namespace.h @@ -17,11 +17,6 @@ #ifndef _BIONIC_NETBSD_NAMESPACE_H_included #define _BIONIC_NETBSD_NAMESPACE_H_included -// NetBSD uses __weak_alias on a lot of functions. We don't want that. -#if defined(__weak_alias) -#undef __weak_alias -#endif - __LIBC_HIDDEN__ int __res_enable_mt(void); __LIBC_HIDDEN__ int __res_disable_mt(void); diff --git a/libc/upstream-netbsd/android/include/netbsd-compat.h b/libc/upstream-netbsd/android/include/netbsd-compat.h index f61e90a..8d1c46b 100644 --- a/libc/upstream-netbsd/android/include/netbsd-compat.h +++ b/libc/upstream-netbsd/android/include/netbsd-compat.h @@ -17,6 +17,9 @@ #ifndef _BIONIC_NETBSD_COMPAT_H_included #define _BIONIC_NETBSD_COMPAT_H_included +#define _BSD_SOURCE +#define _GNU_SOURCE + // NetBSD uses _DIAGASSERT to null-check arguments and the like. #include <assert.h> #define _DIAGASSERT(e) ((e) ? (void) 0 : __assert2(__FILE__, __LINE__, __func__, #e)) @@ -24,9 +27,6 @@ // TODO: update our <sys/cdefs.h> to support this properly. #define __type_fit(t, a) (0 == 0) -#define _GNU_SOURCE -#define __USE_BSD - // TODO: we don't yet have thread-safe environment variables. #define __readlockenv() 0 #define __unlockenv() 0 |