summaryrefslogtreecommitdiffstats
path: root/src/basic/random-util.c
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/basic/random-util.c
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/basic/random-util.c')
-rw-r--r--src/basic/random-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/random-util.c b/src/basic/random-util.c
index 28ace92f19..98bcc7444c 100644
--- a/src/basic/random-util.c
+++ b/src/basic/random-util.c
@@ -24,6 +24,7 @@
#include "io-util.h"
#include "missing_random.h"
#include "missing_syscall.h"
+#include "missing_threads.h"
#include "parse-util.h"
#include "random-util.h"
#include "sha256.h"