diff options
author | Cristian RodrÃguez <crodriguez@owncloud.com> | 2023-01-03 17:52:08 +0000 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-06 10:04:39 +0900 |
commit | 5545f336fd09148e8d9aa7f83ed19384deaf7a64 (patch) | |
tree | 9e450d2cc4de845cfdec4fc0796b024fd090d811 /src/login | |
parent | efcde781de4ebf7d15410b5d6cb7de3a8c67f6aa (diff) | |
download | systemd-5545f336fd09148e8d9aa7f83ed19384deaf7a64.tar.gz |
Include <threads.h> if possible to get thread_local definition
IN C23, thread_local is a reserved keyword and we shall therefore
do nothing to redefine it. glibc has it defined for older standard
version with the right conditions.
v2 by Yu Watanabe:
Move the definition to missing_threads.h like the way we define e.g.
missing syscalls or missing definitions, and include it by the users.
Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/logind-inhibit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c index 8735538d20..12cd854706 100644 --- a/src/login/logind-inhibit.c +++ b/src/login/logind-inhibit.c @@ -18,6 +18,7 @@ #include "io-util.h" #include "logind-dbus.h" #include "logind-inhibit.h" +#include "missing_threads.h" #include "mkdir-label.h" #include "parse-util.h" #include "path-util.h" |