[gnio] Only init GUnixFDMessage on unix
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnio] Only init GUnixFDMessage on unix
- Date: Thu, 7 May 2009 14:59:21 -0400 (EDT)
commit 55e2de839338e4ca652dbae57821da0b716b74d4
Author: Alexander Larsson <alexl redhat com>
Date: Thu May 7 20:58:26 2009 +0200
Only init GUnixFDMessage on unix
---
gio/gsocketcontrolmessage.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gio/gsocketcontrolmessage.c b/gio/gsocketcontrolmessage.c
index 3af0029..d83ffb2 100644
--- a/gio/gsocketcontrolmessage.c
+++ b/gio/gsocketcontrolmessage.c
@@ -37,7 +37,7 @@
* this class and implement the deserialize method. Also, make sure your
* class is registered with the GType typesystem before calling
* g_socket_recieve_message() to read such a message.
- *
+ *
* Since: 2.22
**/
@@ -154,13 +154,17 @@ g_socket_control_message_deserialize (int level,
{
GSocketControlMessageClass *klass;
GSocketControlMessage *message;
- volatile GType a_type;
GType *message_types;
guint n_message_types;
int i;
+#ifndef G_OS_WIN32
+ volatile GType a_type;
+#endif
/* Ensure we know about the built in types */
+#ifndef G_OS_WIN32
a_type = g_unix_fd_message_get_type ();
+#endif
message_types = g_type_children (G_TYPE_SOCKET_CONTROL_MESSAGE, &n_message_types);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]