From e81d4ea988c2e35a9cca0ad12516c39608545bc5 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 5 Oct 2015 16:29:05 +0800 Subject: [PATCH] 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 file changed, 3 insertions(+) diff --git a/gio/gsocket.c b/gio/gsocket.c index 80074d4ec..b80f803e5 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: