]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/randutils: glibc 2.25 has getrandom(2) declaration
authorSami Kerola <kerolasa@iki.fi>
Sat, 11 Feb 2017 18:04:14 +0000 (18:04 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Feb 2017 13:14:28 +0000 (14:14 +0100)
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>
lib/randutils.c

index daf0460051aa1ba1bf109b7ca956470bdb34f327..a835ff345e5190720d507861a1d1d3b020108a72 100644 (file)
@@ -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)