chiark / gitweb /
__thread --> thread_local for C11 compat
[elogind.git] / src / shared / capability.c
index 321952067d71469c3e9c683ff85c191695dac730..f34f6ba6f690c769004cabd7bfad4070f2664a94 100644 (file)
@@ -55,8 +55,8 @@ int have_effective_cap(int value) {
 }
 
 unsigned long cap_last_cap(void) {
-        static __thread unsigned long saved;
-        static __thread bool valid = false;
+        static thread_local unsigned long saved;
+        static thread_local bool valid = false;
         unsigned long p;
 
         if (valid)