mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
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:
parent
9b7f5ad611
commit
e81d4ea988
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user