aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-05-01 16:25:44 +0100
committerEric Engestrom <[email protected]>2019-05-01 15:45:47 +0000
commit70da00ffd65e56c8c8cc6ecfcec462fb52ee5102 (patch)
tree75e13b810e4f39e71851bb61d4f6b85e5c60ef2f /src
parenta44420d9ccceaa113ab9db9f60d37621b10c733b (diff)
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]>
Diffstat (limited to 'src')
-rw-r--r--src/util/os_file.c2
1 files changed, 1 insertions, 1 deletions
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>