From fd6f5ebc32eb5f74501e11b7e519642ee95d49f0 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Sun, 1 Mar 2015 09:44:59 +0100 Subject: [PATCH] Fix getrandom interface detection Fixes GH-346 --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 1f935e7d..c946866a 100644 --- a/configure.ac +++ b/configure.ac @@ -758,10 +758,12 @@ AC_CHECK_FUNCS([__argz_count \ AC_MSG_CHECKING([for getrandom linux syscall interface]) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ +#include #include ]], [[ int x = GRND_NONBLOCK; +int y = (int)SYS_getrandom; ]])], [have_getrandom_interface=yes AC_DEFINE([HAVE_GETRANDOM_INTERFACE], [1], [Define to 1 if getrandom linux syscall interface is available.])],