[glib] Fix G_OS #ifdefs in gbusserver.c
- From: Manuel Bachmann <mbachmann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix G_OS #ifdefs in gbusserver.c
- Date: Sun, 24 Nov 2013 03:59:23 +0000 (UTC)
commit 1fb4b3b2bf30b6a74c1b161a0884a424f7211e33
Author: Manuel Bachmann <tarnyko tarnyko net>
Date: Sun Nov 24 04:51:21 2013 +0100
Fix G_OS #ifdefs in gbusserver.c
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 | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gio/gdbusserver.c b/gio/gdbusserver.c
index 7f3d8e6..30df5cb 100644
--- a/gio/gdbusserver.c
+++ b/gio/gdbusserver.c
@@ -25,12 +25,6 @@
#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"
@@ -52,6 +46,13 @@
#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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]