fix placement of config-host.h inclusion
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Feb 2010 19:33:11 +0000 (20:33 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 10 Feb 2010 17:56:56 +0000 (11:56 -0600)
The #ifdef CONFIG_SOLARIS below was useless without this patch.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
osdep.c

diff --git a/osdep.c b/osdep.c
index cf3a2c620a1450684249f60297a39f6a941d30fb..9059f019e7c9afd6e462b15f26b1565e57459898 100644 (file)
--- a/osdep.c
+++ b/osdep.c
 #include <errno.h>
 #include <unistd.h>
 #include <fcntl.h>
+
+/* Needed early for CONFIG_BSD etc. */
+#include "config-host.h"
+
 #ifdef CONFIG_SOLARIS
 #include <sys/types.h>
 #include <sys/statvfs.h>
 #endif
 
-/* Needed early for CONFIG_BSD etc. */
-#include "config-host.h"
-
 #ifdef _WIN32
 #include <windows.h>
 #elif defined(CONFIG_BSD)