summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDl/dlfcn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibDl/dlfcn.cpp')
-rw-r--r--Userland/Libraries/LibDl/dlfcn.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/Userland/Libraries/LibDl/dlfcn.cpp b/Userland/Libraries/LibDl/dlfcn.cpp
index 077f62a101..861df60476 100644
--- a/Userland/Libraries/LibDl/dlfcn.cpp
+++ b/Userland/Libraries/LibDl/dlfcn.cpp
@@ -11,8 +11,16 @@
#include <string.h>
// FIXME: use thread_local and a String once TLS works
-__thread char* s_dlerror_text = NULL;
-__thread bool s_dlerror_retrieved = false;
+#ifndef X86_64_NO_TLS
+__thread
+#endif
+ char* s_dlerror_text
+ = NULL;
+#ifndef X86_64_NO_TLS
+__thread
+#endif
+ bool s_dlerror_retrieved
+ = false;
static void store_error(const String& error)
{