diff --git a/src/util/rand_xor.c b/src/util/rand_xor.c
index de05fa6..016703c 100644
--- a/src/util/rand_xor.c
+++ b/src/util/rand_xor.c
@@ -24,6 +24,9 @@
 
 #if defined(__linux__)
 #include <sys/file.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
 #include <unistd.h>
 #else
 #include <time.h>