summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net.c3
-rw-r--r--osdep.c3
-rw-r--r--savevm.c3
-rw-r--r--vl.c3
4 files changed, 12 insertions, 0 deletions
diff --git a/net.c b/net.c
index 18ee309922..1efa81088e 100644
--- a/net.c
+++ b/net.c
@@ -29,6 +29,9 @@
#include <sys/time.h>
#include <zlib.h>
+/* Needed early for _BSD etc. */
+#include "config-host.h"
+
#ifndef _WIN32
#include <sys/times.h>
#include <sys/wait.h>
diff --git a/osdep.c b/osdep.c
index 04e98f0b29..ff5f17a6bd 100644
--- a/osdep.c
+++ b/osdep.c
@@ -33,6 +33,9 @@
#include <sys/statvfs.h>
#endif
+/* Needed early for _BSD etc. */
+#include "config-host.h"
+
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
diff --git a/savevm.c b/savevm.c
index a28af04215..a25d3658f0 100644
--- a/savevm.c
+++ b/savevm.c
@@ -29,6 +29,9 @@
#include <sys/time.h>
#include <zlib.h>
+/* Needed early for _BSD etc. */
+#include "config-host.h"
+
#ifndef _WIN32
#include <sys/times.h>
#include <sys/wait.h>
diff --git a/vl.c b/vl.c
index 00aae19c56..804c835e4e 100644
--- a/vl.c
+++ b/vl.c
@@ -29,6 +29,9 @@
#include <sys/time.h>
#include <zlib.h>
+/* Needed early for _BSD etc. */
+#include "config-host.h"
+
#ifndef _WIN32
#include <pwd.h>
#include <sys/times.h>