summaryrefslogtreecommitdiffstats
path: root/src/util/rand_xor.c
diff options
context:
space:
mode:
authorNicolas Dechesne <[email protected]>2017-06-01 12:13:18 +0200
committerEric Engestrom <[email protected]>2017-06-01 14:26:12 +0100
commitadadadc151fa8232ecd78649a10496661b98e40d (patch)
tree307c4e7b3e0f8944c88955efb7b947afed4b4bbc /src/util/rand_xor.c
parentcab5996c2637c31a78a0196e42ec6de9eb61f270 (diff)
util/rand_xor: add missing include statements
Fixes for: src/util/rand_xor.c:60:13: error: implicit declaration of function 'open' [-Werror=implicit-function-declaration] int fd = open("/dev/urandom", O_RDONLY); ^~~~ src/util/rand_xor.c:60:34: error: 'O_RDONLY' undeclared (first use in this function) int fd = open("/dev/urandom", O_RDONLY); ^~~~~~~~ Signed-off-by: Nicolas Dechesne <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/util/rand_xor.c')
-rw-r--r--src/util/rand_xor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/rand_xor.c b/src/util/rand_xor.c
index de05fa64b3c..de04bbc284f 100644
--- a/src/util/rand_xor.c
+++ b/src/util/rand_xor.c
@@ -25,6 +25,7 @@
#if defined(__linux__)
#include <sys/file.h>
#include <unistd.h>
+#include <fcntl.h>
#else
#include <time.h>
#endif