Browse Source

fix getentropy()

Add missing header in commit 19fe75f0ab09c9661ff03738579171624fc35018

Reported-By: Ronald Wahl <ronald.wahl@legrand.com>
Waldemar Brodkorb 2 months ago
parent
commit
203e99c51d
2 changed files with 2 additions and 0 deletions
  1. 1 0
      libc/sysdeps/linux/common/Makefile.in
  2. 1 0
      libc/sysdeps/linux/common/getentropy.c

+ 1 - 0
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 \

+ 1 - 0
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