[PATCH] lib/randutils: glibc 2.25 has getrandom(2) declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
---
 lib/randutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.11.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux