configure: fix HAVE_GETRANDOM_SYSCALL check

syscall() function requires #include <unistd.h>.
This commit is contained in:
Victor Stinner 2016-04-12 22:34:58 +02:00
parent 9d24271d86
commit 1b80b24007
2 changed files with 85 additions and 83 deletions

1
configure vendored
View File

@ -16276,6 +16276,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <unistd.h>
#include <sys/syscall.h>
int main() {

View File

@ -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() {