summaryrefslogtreecommitdiffstats
path: root/lib/randutils.c
diff options
context:
space:
mode:
authorSami Kerola2017-02-11 19:04:14 +0100
committerKarel Zak2017-02-13 14:14:28 +0100
commitb192dd6943e5bb5d2a3773b2c9b06cbd4eb28258 (patch)
treeaf09233da9270a307fd528acb89639cc5016244c /lib/randutils.c
parentbash-completion: add blkreset and blkreport completion (diff)
downloadkernel-qcow2-util-linux-b192dd6943e5bb5d2a3773b2c9b06cbd4eb28258.tar.gz
kernel-qcow2-util-linux-b192dd6943e5bb5d2a3773b2c9b06cbd4eb28258.tar.xz
kernel-qcow2-util-linux-b192dd6943e5bb5d2a3773b2c9b06cbd4eb28258.zip
lib/randutils: glibc 2.25 has getrandom(2) declaration
Use correct header file to include the function. Reference: http://git.kernel.org/cgit/docs/man-pages/man-pages.git/commit/?id=2cbb6fb4e926e56dc3985b19ac02389321a0af5d Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'lib/randutils.c')
-rw-r--r--lib/randutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/randutils.c b/lib/randutils.c
index daf046005..a835ff345 100644
--- a/lib/randutils.c
+++ b/lib/randutils.c
@@ -26,7 +26,7 @@
#endif
#ifdef HAVE_GETRANDOM
-# include <linux/random.h>
+# include <sys/random.h>
#elif defined (__linux__)
# include <sys/syscall.h>
# if !defined(SYS_getrandom) && defined(__NR_getrandom)