From f106775df14dbd1af2f1e0d3b1b3c67c167f8ce0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 16 Aug 2002 04:49:08 +0000 Subject: Replace all instances of _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__ -Erik --- include/netdb.h | 6 +++--- include/resolv.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') 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 -- cgit v1.2.3