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/libsystemd/sd-id128/sd-id128.c | |
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/libsystemd/sd-id128/sd-id128.c')
-rw-r--r-- | src/libsystemd/sd-id128/sd-id128.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd/sd-id128/sd-id128.c b/src/libsystemd/sd-id128/sd-id128.c index ec3a496dba..5ce36cf2fc 100644 --- a/src/libsystemd/sd-id128/sd-id128.c +++ b/src/libsystemd/sd-id128/sd-id128.c @@ -14,6 +14,7 @@ #include "io-util.h" #include "macro.h" #include "missing_syscall.h" +#include "missing_threads.h" #include "random-util.h" #include "stat-util.h" #include "user-util.h" |