From ec202eae8e84a4c99f054f771cb832046cb8769f Mon Sep 17 00:00:00 2001 From: Shawn Landden Date: Sun, 15 Dec 2013 16:24:14 -0800 Subject: __thread --> thread_local for C11 compat Also make thread_local available w/o including . (as the latter hasn't been implemented, but this part is trivial) --- src/shared/cgroup-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/cgroup-util.c') 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); -- cgit v1.2.3-54-g00ecf