summaryrefslogtreecommitdiff
path: root/elf/dl-open.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-open.c')
-rw-r--r--elf/dl-open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c
index 7433d99ff9..a65690e5a3 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -462,8 +462,10 @@ dl_open_worker (void *a)
/* We have to bump the generation counter. */
any_tls = true;
}
+#endif
}
+#if USE_TLS
/* Bump the generation number if necessary. */
if (any_tls && __builtin_expect (++GL(dl_tls_generation) == 0, 0))
_dl_fatal_printf (N_("\