Module: Mesa Branch: master Commit: 70da00ffd65e56c8c8cc6ecfcec462fb52ee5102 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=70da00ffd65e56c8c8cc6ecfcec462fb52ee5102
Author: Eric Engestrom <[email protected]> Date: Wed May 1 16:25:44 2019 +0100 util: move #include out of #if linux This #include is needed for `NULL`, which is used on all OSes, not just Linux. Reported-by: Juan A. Suarez Romero <[email protected]> Fixes: 316964709e21286c2af5 "util: add os_read_file() helper" Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Juan A. Suarez <[email protected]> --- src/util/os_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/os_file.c b/src/util/os_file.c index cee9d22c8ec..ee34a75a2e0 100644 --- a/src/util/os_file.c +++ b/src/util/os_file.c @@ -6,11 +6,11 @@ #include "os_file.h" #include <errno.h> +#include <stdlib.h> #if defined(__linux__) #include <fcntl.h> -#include <stdlib.h> #include <sys/stat.h> #include <unistd.h> _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
