diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/netdb.h | 6 | ||||
-rw-r--r-- | include/resolv.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/netdb.h b/include/netdb.h index c3e07728c..ffa9cd524 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -60,7 +60,7 @@ extern int h_errno; extern int *__h_errno_location (void) __THROW __attribute__ ((__const__)); #ifdef _LIBC -# ifdef _LIBC_REENTRANT +# ifdef __UCLIBC_HAS_THREADS__ static inline int __set_h_errno (int __err) { @@ -68,11 +68,11 @@ __set_h_errno (int __err) } # else # define __set_h_errno(x) (h_errno = (x)) -# endif /* _LIBC_REENTRANT */ +# endif /* __UCLIBC_HAS_THREADS__ */ #endif /* _LIBC */ -#if !defined _LIBC || defined _LIBC_REENTRANT +#if !defined _LIBC || defined __UCLIBC_HAS_THREADS__ /* Use a macro to access always the thread specific `h_errno' variable. */ # define h_errno (*__h_errno_location ()) #endif diff --git a/include/resolv.h b/include/resolv.h index 2d2258c7d..d77a42ecd 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -217,7 +217,7 @@ typedef struct __res_state *res_state; /* 0x00008000 */ /* Things involving an internal (static) resolver context. */ -#if !defined _LIBC || defined _LIBC_REENTRANT +#if !defined _LIBC || defined __UCLIBC_HAS_THREADS__ __BEGIN_DECLS extern struct __res_state *__res_state(void) __attribute__ ((__const__)); __END_DECLS |