aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--elf/dl-sym.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 88ff43c1d1..7c39b61369 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-07 Andreas Schwab <schwab@suse.de>
+
+ * elf/dl-sym.c: Include <dl-tls.h> only when USE_TLS.
+
2004-03-07 Andreas Jaeger <aj@suse.de>
* iconvdata/iso-2022-cn-ext.c (BODY): Remove cast used as lvalue.
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