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
This commit is contained in:
Chun-wei Fan 2015-10-05 16:29:05 +08:00
parent 9b7f5ad611
commit e81d4ea988

View File

@ -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: