Mesa (master): util/rand_xor: add missing include statements
Eric Engeström
eric_engestrom at kemper.freedesktop.org
Thu Jun 1 13:26:40 UTC 2017
Module: Mesa
Branch: master
Commit: adadadc151fa8232ecd78649a10496661b98e40d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=adadadc151fa8232ecd78649a10496661b98e40d
Author: Nicolas Dechesne <nicolas.dechesne at linaro.org>
Date: Thu Jun 1 12:13:18 2017 +0200
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 <nicolas.dechesne at linaro.org>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
src/util/rand_xor.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/rand_xor.c b/src/util/rand_xor.c
index de05fa64b3..de04bbc284 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
More information about the mesa-commit
mailing list