summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDl
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-07-03 00:50:22 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-04 01:07:28 +0200
commite1ff30a3605e9242ee30525b04adb71bcc9162db (patch)
treee1fa668b9d8024d34d7c6f64e58e2fcc0f49c064 /Userland/Libraries/LibDl
parent371c852fc01a0019e1e008f145d9b95aef7c9b6d (diff)
downloadserenity-e1ff30a3605e9242ee30525b04adb71bcc9162db.zip
Toolchain+Userland: Enable TLS for x86_64
This is not technically a toolchain change, but it does require rebuilding the toolchain for x86_64 (and just that).
Diffstat (limited to 'Userland/Libraries/LibDl')
-rw-r--r--Userland/Libraries/LibDl/dlfcn.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/Userland/Libraries/LibDl/dlfcn.cpp b/Userland/Libraries/LibDl/dlfcn.cpp
index 861df60476..077f62a101 100644
--- a/Userland/Libraries/LibDl/dlfcn.cpp
+++ b/Userland/Libraries/LibDl/dlfcn.cpp
@@ -11,16 +11,8 @@
#include <string.h>
// FIXME: use thread_local and a String once TLS works
-#ifndef X86_64_NO_TLS
-__thread
-#endif
- char* s_dlerror_text
- = NULL;
-#ifndef X86_64_NO_TLS
-__thread
-#endif
- bool s_dlerror_retrieved
- = false;
+__thread char* s_dlerror_text = NULL;
+__thread bool s_dlerror_retrieved = false;
static void store_error(const String& error)
{