summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2025-07-21 00:18:23 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2025-07-25 21:18:42 +0200
commit203e99c51d708560b7da0be44fc33efc20035738 (patch)
tree7a078d9de7269d9a65d759f1a36fafe3d918b3b0 /libc/sysdeps/linux/common
parente2585415dfd005669fe50958b802894ce31c1576 (diff)
fix getentropy()
Add missing header in commit 19fe75f0ab09c9661ff03738579171624fc35018 Reported-By: Ronald Wahl <ronald.wahl@legrand.com>
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/Makefile.in1
-rw-r--r--libc/sysdeps/linux/common/getentropy.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/Makefile.in b/libc/sysdeps/linux/common/Makefile.in
index e0b280c33..4a4317432 100644
--- a/libc/sysdeps/linux/common/Makefile.in
+++ b/libc/sysdeps/linux/common/Makefile.in
@@ -27,6 +27,7 @@ CSRC-$(UCLIBC_LINUX_SPECIFIC) += \
eventfd_write.c \
fanotify.c \
getrandom.c \
+ getentropy.c \
inotify.c \
ioperm.c \
iopl.c \
diff --git a/libc/sysdeps/linux/common/getentropy.c b/libc/sysdeps/linux/common/getentropy.c
index 55bd48a12..d255310b6 100644
--- a/libc/sysdeps/linux/common/getentropy.c
+++ b/libc/sysdeps/linux/common/getentropy.c
@@ -12,6 +12,7 @@
#include <errno.h>
#include <unistd.h>
#include <sys/random.h>
+#include <sys/syscall.h>
#ifdef __NR_getrandom
int