mirror of
https://github.com/python/cpython.git
synced 2025-11-15 08:01:29 +00:00
configure: fix HAVE_GETRANDOM_SYSCALL check
syscall() function requires #include <unistd.h>.
This commit is contained in:
parent
9d24271d86
commit
1b80b24007
2 changed files with 85 additions and 83 deletions
1
configure
vendored
1
configure
vendored
|
|
@ -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…
Add table
Add a link
Reference in a new issue