From eae596341c64067cf46dbd2e5bc2e8db42fd0be1 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 18 Nov 2009 14:01:19 +0000 Subject: Used closesocket in stead of close for closing a socket on windows. --- libxcb/src/xcb_util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libxcb/src/xcb_util.c') diff --git a/libxcb/src/xcb_util.c b/libxcb/src/xcb_util.c index 97642c04d..1ab60b9e8 100644 --- a/libxcb/src/xcb_util.c +++ b/libxcb/src/xcb_util.c @@ -47,6 +47,10 @@ #include "xcbext.h" #include "xcbint.h" +#ifdef _MSC_VER +#define close(fd) closesocket(fd) +#endif + static const int error_connection = 1; int xcb_popcount(uint32_t mask) -- cgit v1.2.3