chiark / gitweb /
basic/random-util: add new header for getrandom()
[elogind.git] / src / basic / random-util.c
index ad7b3eedf2c1d5ffb7ca92662bff43e070878872..b216be579d28c0fe2d250b263dfe0f49de2ef5fb 100644 (file)
 #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"