aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/errno-loc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/errno-loc.c')
-rw-r--r--sysdeps/generic/errno-loc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/generic/errno-loc.c b/sysdeps/generic/errno-loc.c
index bda9fa4..032b483 100644
--- a/sysdeps/generic/errno-loc.c
+++ b/sysdeps/generic/errno-loc.c
@@ -20,11 +20,9 @@
#include <errno.h>
#include <tls.h>
-#undef errno
-#if USE_TLS && HAVE___THREAD
-extern __thread int errno;
-#else
+#if !(USE_TLS && HAVE___THREAD)
+#undef errno
extern int errno;
#endif