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/libsystemd-bus/sd-bus.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/libsystemd-bus/sd-bus.c')
-rw-r--r-- | src/libsystemd-bus/sd-bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c index 338ce0619d..9c564de764 100644 --- a/src/libsystemd-bus/sd-bus.c +++ b/src/libsystemd-bus/sd-bus.c @@ -2813,13 +2813,13 @@ static int bus_default(int (*bus_open)(sd_bus **), sd_bus **default_bus, sd_bus } _public_ int sd_bus_default_system(sd_bus **ret) { - static __thread sd_bus *default_system_bus = NULL; + static thread_local sd_bus *default_system_bus = NULL; return bus_default(sd_bus_open_system, &default_system_bus, ret); } _public_ int sd_bus_default_user(sd_bus **ret) { - static __thread sd_bus *default_user_bus = NULL; + static thread_local sd_bus *default_user_bus = NULL; return bus_default(sd_bus_open_user, &default_user_bus, ret); } |