[Xcb] [PATCH 3/3] Use WSAStartup()/WSACleanup() on WIN32
Josh Triplett
josh at joshtriplett.org
Fri Jan 6 16:34:03 PST 2012
On Fri, Jan 06, 2012 at 06:52:58PM +0000, Jon TURNEY wrote:
> --- a/src/xcb_util.c
> +++ b/src/xcb_util.c
> @@ -426,11 +426,23 @@ xcb_connection_t *xcb_connect_to_display_with_auth_info(const char *displayname,
> if(!parsed) {
> c = (xcb_connection_t *) &error_connection;
> goto out;
> - } else
> + } else {
> +#ifdef _WIN32
> + WSADATA wsaData;
> + if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0)
> + {
> + c = (xcb_connection_t *) &error_connection;
> + goto out;
> + }
Wrong indentation style; not a GNU project. :)
- Josh Triplett
More information about the Xcb
mailing list