Commit 1b80b240 authored by Victor Stinner's avatar Victor Stinner

configure: fix HAVE_GETRANDOM_SYSCALL check

syscall() function requires #include <unistd.h>.
parent 9d24271d
...@@ -16276,6 +16276,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ...@@ -16276,6 +16276,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <unistd.h>
#include <sys/syscall.h> #include <sys/syscall.h>
int main() { int main() {
......
...@@ -5204,6 +5204,7 @@ AC_MSG_CHECKING(for the Linux getrandom() syscall) ...@@ -5204,6 +5204,7 @@ AC_MSG_CHECKING(for the Linux getrandom() syscall)
AC_LINK_IFELSE( AC_LINK_IFELSE(
[ [
AC_LANG_SOURCE([[ AC_LANG_SOURCE([[
#include <unistd.h>
#include <sys/syscall.h> #include <sys/syscall.h>
int main() { int main() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment