Don't read TLS header if TLS is not needed.
authorUlrich Drepper <drepper@redhat.com>
Thu, 7 Feb 2002 17:29:14 +0000 (17:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 7 Feb 2002 17:29:14 +0000 (17:29 +0000)
sysdeps/generic/dl-tls.c

index 1b16bd5..d5163c6 100644 (file)
 
 #include <assert.h>
 
-#include <tls.h>
-#include <dl-tls.h>
-#include <ldsodefs.h>
-
 
 /* We don't need any of this if TLS is not supported.  */
 #ifdef USE_TLS
 
+#include <tls.h>
+#include <dl-tls.h>
+#include <ldsodefs.h>
+
 /* Value used for dtv entries for which the allocation is delayed.  */
 # define TLS_DTV_UNALLOCATE    ((void *) -1l)