summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/sconfig/main.c2
-rw-r--r--util/sconfig/sconfig.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index 385ced16ab..85e0d8ea7f 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -15,6 +15,8 @@
*/
#include <ctype.h>
+/* stat.h needs to be included before commonlib/helpers.h to avoid errors.*/
+#include <sys/stat.h>
#include <commonlib/helpers.h>
#include "sconfig.h"
#include "sconfig.tab.h"
diff --git a/util/sconfig/sconfig.h b/util/sconfig/sconfig.h
index e6363dea83..eea2a14e40 100644
--- a/util/sconfig/sconfig.h
+++ b/util/sconfig/sconfig.h
@@ -18,7 +18,6 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
-#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>