Patchwork [3/3] fix placement of config-host.h inclusion

login
register
mail settings
Submitter Paolo Bonzini
Date Feb. 2, 2010, 7:33 p.m.
Message ID <1265139191-13568-4-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/44303/
State New
Headers show

Comments

Paolo Bonzini - Feb. 2, 2010, 7:33 p.m.
The #ifdef CONFIG_SOLARIS below was useless without this patch.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 osdep.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

Patch

diff --git a/osdep.c b/osdep.c
index cf3a2c6..9059f01 100644
--- a/osdep.c
+++ b/osdep.c
@@ -28,14 +28,15 @@ 
 #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)