瀏覽代碼

fix getentropy()

Add missing header in commit 19fe75f0ab09c9661ff03738579171624fc35018

Reported-By: Ronald Wahl <ronald.wahl@legrand.com>
Waldemar Brodkorb 6 月之前
父節點
當前提交
203e99c51d
共有 2 個文件被更改,包括 2 次插入0 次删除
  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