about summary refs log tree commit diff
path: root/include/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tls.h')
-rw-r--r--include/tls.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tls.h b/include/tls.h
index 1642456a73..ffd3e4e70c 100644
--- a/include/tls.h
+++ b/include/tls.h
@@ -5,7 +5,8 @@
 
 #include_next <tls.h>
 
-#if HAVE___THREAD && (!defined NOT_IN_libc || defined IS_IN_libpthread)
+#if USE_TLS && HAVE___THREAD \
+    && (!defined NOT_IN_libc || defined IS_IN_libpthread)
 
 # define USE___THREAD 1