diff options
| author | Nils Maier <maierman@web.de> | 2015-03-01 09:44:59 +0100 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2015-03-01 09:52:02 +0100 |
| commit | fd6f5ebc32eb5f74501e11b7e519642ee95d49f0 (patch) | |
| tree | ba00f379b8f25489d8a97edadddb7e082ab97047 /configure.ac | |
| parent | e8d4af44f427d06e73869cf4b84e125b46869cac (diff) | |
Fix getrandom interface detection
Fixes GH-346
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
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 <sys/syscall.h> #include <linux/random.h> ]], [[ 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.])], |
