summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-event
diff options
context:
space:
mode:
authorCristian Rodríguez <crodriguez@owncloud.com>2023-01-03 18:52:08 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-03-06 02:04:39 +0100
commit5545f336fd09148e8d9aa7f83ed19384deaf7a64 (patch)
tree9e450d2cc4de845cfdec4fc0796b024fd090d811 /src/libsystemd/sd-event
parentmeson: adjust for removal of gnu-efi compat (diff)
downloadsystemd-5545f336fd09148e8d9aa7f83ed19384deaf7a64.tar.xz
systemd-5545f336fd09148e8d9aa7f83ed19384deaf7a64.zip
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-event')
-rw-r--r--src/libsystemd/sd-event/sd-event.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
index 2c0895dc74..413ac16aa2 100644
--- a/src/libsystemd/sd-event/sd-event.c
+++ b/src/libsystemd/sd-event/sd-event.c
@@ -24,6 +24,7 @@
#include "memory-util.h"
#include "missing_magic.h"
#include "missing_syscall.h"
+#include "missing_threads.h"
#include "path-util.h"
#include "prioq.h"
#include "process-util.h"