Fix G_OS #ifdefs in gbusserver.c
authorManuel Bachmann <tarnyko@tarnyko.net>
Sun, 24 Nov 2013 03:51:21 +0000 (04:51 +0100)
committerManuel Bachmann <tarnyko@tarnyko.net>
Sun, 24 Nov 2013 03:51:21 +0000 (04:51 +0100)
G_OS #ifdefs are only available once glibconfig.h has been
evaluated ; that is, after including glib headers.
Move this block down so it gets correctly evaluated.

gio/gdbusserver.c

index 7f3d8e6..30df5cb 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
-#ifdef G_OS_UNIX
-#include <unistd.h>
-#endif
-#ifdef G_OS_WIN32
-#include <io.h>
-#endif
 
 #include "giotypes.h"
 #include "gioerror.h"
 #include "giostream.h"
 
 #ifdef G_OS_UNIX
+#include <unistd.h>
+#endif
+#ifdef G_OS_WIN32
+#include <io.h>
+#endif
+
+#ifdef G_OS_UNIX
 #include "gunixsocketaddress.h"
 #endif