diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2024-05-01 21:47:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 21:47:08 +0200 |
commit | 9cbdb916de2a7bd1aa649e55efc38d2426680359 (patch) | |
tree | 091111b3e1149df973e19335082537e902d1e867 | |
parent | c82ca17b61de7e37d3b748b55b33adfd1a091392 (diff) | |
parent | 73627c7456db80db5d537f178132978b686c6fb7 (diff) | |
download | expat-9cbdb916de2a7bd1aa649e55efc38d2426680359.tar.gz |
Merge pull request #865 from Ferenc-/fix-define-for-linux-syscall
Fix `check_c_source_compiles` of `HAVE_SYSCALL_GETRANDOM`
-rw-r--r-- | expat/ConfigureChecks.cmake | 1 | ||||
-rw-r--r-- | expat/configure.ac | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/expat/ConfigureChecks.cmake b/expat/ConfigureChecks.cmake index 10e3bb19..c06b2f27 100644 --- a/expat/ConfigureChecks.cmake +++ b/expat/ConfigureChecks.cmake @@ -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 */ diff --git a/expat/configure.ac b/expat/configure.ac index 5baf0a62..9d28d79a 100644 --- a/expat/configure.ac +++ b/expat/configure.ac @@ -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 */ |