util: move #include out of #if linux
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 1 May 2019 15:25:44 +0000 (16:25 +0100)
committerEric Engestrom <eric@engestrom.ch>
Wed, 1 May 2019 15:45:47 +0000 (15:45 +0000)
This #include is needed for `NULL`, which is used on all OSes, not just Linux.

Reported-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Fixes: 316964709e21286c2af5 "util: add os_read_file() helper"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
src/util/os_file.c

index cee9d22c8ecfef7f2107659ed4b0246fdb231185..ee34a75a2e0d08de96eb757ed269564e1eb339a2 100644 (file)
@@ -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>