Skip to contentSkip to conversation

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

PATCH Applied Sami Kerola 2 participants 2 messages Feb 11, 2017 – Feb 13, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 lib/randutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/randutils.c +1 -1
index daf046005..a835ff345 100644
@@ -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)
Signature · 1 line
2.11.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Sami Kerola
 lib/randutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com