[glib] gio/goscket.c: Fix build on Windows



commit e81d4ea988c2e35a9cca0ad12516c39608545bc5
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Oct 5 16:29:05 2015 +0800

    gio/goscket.c: Fix build on Windows
    
    5d68947 factored out resuable items, but some of these are only for
    *NIX builds, which will break the build on Windows.  Fix this by
    building these portions only when !G_OS_WIN32.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756053

 gio/gsocket.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsocket.c b/gio/gsocket.c
index 80074d4..b80f803 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -3804,6 +3804,8 @@ g_socket_condition_timed_wait (GSocket       *socket,
   #endif
 }
 
+#ifndef G_OS_WIN32
+
 /* Unfortunately these have to be macros rather than inline functions due to
  * using alloca(). */
 #define output_message_to_msghdr(message, prev_message, msg, prev_msg, error) \
@@ -4024,6 +4026,7 @@ input_message_from_msghdr (const struct msghdr  *msg,
   /* capture the flags */
   message->flags = msg->msg_flags;
 }
+#endif
 
 /**
  * g_socket_send_message:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]