X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=configure.ac;h=d7de0b0817356481d1c3b15719616a5646bf72a0;hp=46dd6f0f9cd531d9191b34285472f8e11301a5d3;hb=90f1e04a2a143876a4413577b25db60b5ba0fe97;hpb=bb3005f9b9fff1333900d8635ad9aeda1021eb94 diff --git a/configure.ac b/configure.ac index 46dd6f0f..d7de0b08 100644 --- a/configure.ac +++ b/configure.ac @@ -75,6 +75,7 @@ AC_CHECK_HEADERS([alloca.h \ sys/byteorder.h \ sys/endian.h \ sys/file.h \ + sys/syscall.h \ sys/sysctl.h \ sys/times.h \ sys/xattr.h \ @@ -90,6 +91,13 @@ AC_CHECK_MEMBER([struct stat.st_mtim], [], [#include ]) +# Check for possible support for the Linux getrandom() system call +AC_CHECK_DECL([__NR_getrandom], + [AC_DEFINE([HAVE_NR_GETRANDOM], [1], [Define to 1 if the system + headers define a system call number for getrandom()])], + [], + [#include ]) + ############################################################################### # Required libraries # ###############################################################################