chiark / gitweb /
__thread --> thread_local for C11 compat
[elogind.git] / src / login / logind-inhibit.c
index ec6a722ce3e65ed7b1517c7d65098d249aaad7b6..042586d0738c9268ae54bc8ce07a04c0b3465293 100644 (file)
@@ -413,7 +413,7 @@ bool manager_is_inhibited(
 }
 
 const char *inhibit_what_to_string(InhibitWhat w) {
-        static __thread char buffer[97];
+        static thread_local char buffer[97];
         char *p;
 
         if (w < 0 || w >= _INHIBIT_WHAT_MAX)