mirror of https://github.com/python/cpython
configure: fix HAVE_GETRANDOM_SYSCALL check
syscall() function requires #include <unistd.h>.
This commit is contained in:
parent
9d24271d86
commit
1b80b24007
|
@ -16276,6 +16276,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
int main() {
|
||||
|
|
|
@ -5204,6 +5204,7 @@ AC_MSG_CHECKING(for the Linux getrandom() syscall)
|
|||
AC_LINK_IFELSE(
|
||||
[
|
||||
AC_LANG_SOURCE([[
|
||||
#include <unistd.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
int main() {
|
||||
|
|
Loading…
Reference in New Issue