Commit e81d4ea9 authored by Chun-wei Fan's avatar Chun-wei Fan

gio/goscket.c: Fix build on Windows

5d689474 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
parent 9b7f5ad6
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment