diff options
-rw-r--r-- | libxcb/src/xcb_conn.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libxcb/src/xcb_conn.c b/libxcb/src/xcb_conn.c index 0c5c59c5f..72b23c008 100644 --- a/libxcb/src/xcb_conn.c +++ b/libxcb/src/xcb_conn.c @@ -285,7 +285,11 @@ void xcb_disconnect(xcb_connection_t *c) return; free(c->setup); +#ifdef _MSC_VER + closesocket(c->fd); +#else close(c->fd); +#endif pthread_mutex_destroy(&c->iolock); _xcb_in_destroy(&c->in); |