summaryrefslogtreecommitdiffstats
path: root/libc/misc/internals/__h_errno_location.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/internals/__h_errno_location.c')
-rw-r--r--libc/misc/internals/__h_errno_location.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c
index d1040dd87..209dcfc9c 100644
--- a/libc/misc/internals/__h_errno_location.c
+++ b/libc/misc/internals/__h_errno_location.c
@@ -1,11 +1,9 @@
#define __FORCE_GLIBC
#include <features.h>
#include <netdb.h>
-#undef h_errno
-#ifdef __UCLIBC_HAS_THREADS_NATIVE__
-extern __thread int h_errno;
-#else
+#ifndef __UCLIBC_HAS_THREADS_NATIVE__
+#undef h_errno
extern int h_errno;
#endif