about summary refs log tree commit diff
path: root/elf/dl-sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-sym.c')
-rw-r--r--elf/dl-sym.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/dl-sym.c b/elf/dl-sym.c
index 27f79a29e5..6c84d79ba8 100644
--- a/elf/dl-sym.c
+++ b/elf/dl-sym.c
@@ -24,7 +24,9 @@
 #include <dlfcn.h>
 #include <ldsodefs.h>
 #include <dl-hash.h>
-#include <dl-tls.h>
+#ifdef USE_TLS
+# include <dl-tls.h>
+#endif
 
 
 #if defined USE_TLS && defined SHARED