mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-05 05:05:00 +00:00
Merge pull request #865 from Ferenc-/fix-define-for-linux-syscall
Fix `check_c_source_compiles` of `HAVE_SYSCALL_GETRANDOM`
This commit is contained in:
commit
9cbdb916de
2 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,7 @@ if(NOT HAVE_OFF_T)
|
|||
endif()
|
||||
|
||||
check_c_source_compiles("
|
||||
#define _GNU_SOURCE
|
||||
#include <stdlib.h> /* for NULL */
|
||||
#include <unistd.h> /* for syscall */
|
||||
#include <sys/syscall.h> /* for SYS_getrandom */
|
||||
|
|
|
@ -274,6 +274,7 @@ AS_HELP_STRING([--without-sys-getrandom],
|
|||
AS_IF([test "x$with_sys_getrandom" != xno],
|
||||
[AC_MSG_CHECKING([for syscall SYS_getrandom (Linux 3.17+)])
|
||||
AC_LINK_IFELSE([AC_LANG_SOURCE([
|
||||
#define _GNU_SOURCE
|
||||
#include <stdlib.h> /* for NULL */
|
||||
#include <unistd.h> /* for syscall */
|
||||
#include <sys/syscall.h> /* for SYS_getrandom */
|
||||
|
|
Loading…
Add table
Reference in a new issue