diff options
author | Shawn Landden <shawn@churchofgit.com> | 2013-12-15 16:24:14 -0800 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-17 21:45:43 +0100 |
commit | ec202eae8e84a4c99f054f771cb832046cb8769f (patch) | |
tree | 3342ddcf1d386c7f613b60e3d72477580eb7ba06 /src/shared/cgroup-util.c | |
parent | 06db8540cdfc8259423ed90e7352dbc1d71eccd9 (diff) |
__thread --> thread_local for C11 compat
Also make thread_local available w/o including <threads.h>.
(as the latter hasn't been implemented, but this part is trivial)
Diffstat (limited to 'src/shared/cgroup-util.c')
-rw-r--r-- | src/shared/cgroup-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/cgroup-util.c b/src/shared/cgroup-util.c index 2c2ffc5898..309f65d03e 100644 --- a/src/shared/cgroup-util.c +++ b/src/shared/cgroup-util.c @@ -480,7 +480,7 @@ static int join_path(const char *controller, const char *path, const char *suffi int cg_get_path(const char *controller, const char *path, const char *suffix, char **fs) { const char *p; - static __thread bool good = false; + static thread_local bool good = false; assert(fs); |