chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
basic/random-util: add new header for getrandom()
[elogind.git]
/
src
/
basic
/
random-util.c
diff --git
a/src/basic/random-util.c
b/src/basic/random-util.c
index ad7b3eedf2c1d5ffb7ca92662bff43e070878872..b216be579d28c0fe2d250b263dfe0f49de2ef5fb 100644
(file)
--- a/
src/basic/random-util.c
+++ b/
src/basic/random-util.c
@@
-27,7
+27,13
@@
#include <stdint.h>
#ifdef HAVE_SYS_AUXV_H
-#include <sys/auxv.h>
+# include <sys/auxv.h>
+#endif
+
+#ifdef USE_SYS_RANDOM_H
+# include <sys/random.h>
+#else
+# include <linux/random.h>
#endif
#include "fd-util.h"