From: Nicolas Dechesne Date: Thu, 1 Jun 2017 10:13:18 +0000 (+0200) Subject: util/rand_xor: add missing include statements X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=adadadc151fa8232ecd78649a10496661b98e40d;p=mesa.git 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 Reviewed-by: Eric Engestrom --- 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 #include +#include #else #include #endif