summaryrefslogtreecommitdiff
path: root/include/netdb.h
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/netdb.h
parent7166f6c6fed92ab07fbfa66b50816827012eac9d (diff)
Replace all instances of _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__
-Erik
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h6
1 files changed, 3 insertions, 3 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