summaryrefslogtreecommitdiffstats
path: root/include/netdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 4a48d0b97..c047c7fe7 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -53,8 +53,13 @@
__BEGIN_DECLS
+#include <tls.h>
+#ifdef USE___THREAD
+extern __thread int h_errno attribute_tls_model_ie;
+#else
/* Error status for non-reentrant lookup functions. */
extern int h_errno;
+#endif
/* Function to get address of global `h_errno' variable. */
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));