aboutsummaryrefslogtreecommitdiff
path: root/libxcb/src
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-09-16 07:39:33 +0000
committermarha <marha@users.sourceforge.net>2009-09-16 07:39:33 +0000
commitc250a1fb6e2732e9b9e66f61bf3db358316e5ea1 (patch)
tree20a78c2a29391af6df7a19bd8dfb9c7e3aeaa400 /libxcb/src
parent06ac0148302f9498779852c6b1dce50728e7fa66 (diff)
downloadvcxsrv-c250a1fb6e2732e9b9e66f61bf3db358316e5ea1.tar.gz
vcxsrv-c250a1fb6e2732e9b9e66f61bf3db358316e5ea1.tar.bz2
vcxsrv-c250a1fb6e2732e9b9e66f61bf3db358316e5ea1.zip
Use closesocket in stead of close for closing a socket on windows.
Diffstat (limited to 'libxcb/src')
-rw-r--r--libxcb/src/xcb_conn.c4
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);