summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-16 04:49:08 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-16 04:49:08 +0000
commitf106775df14dbd1af2f1e0d3b1b3c67c167f8ce0 (patch)
treeff8ad77949aae56db49e68538ea3fe7a1914211c /include
parent7166f6c6fed92ab07fbfa66b50816827012eac9d (diff)
Replace all instances of _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__
-Erik
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h6
-rw-r--r--include/resolv.h2
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