X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_conn.c;h=a017c2075233fc53119e647f93f869e236e2a549;hb=2415c11dec5e5adb0c17f98aa52fbb371a4f8f23;hp=35b9996bc3f7444b87b1ca08aa1e35758a1e11ca;hpb=1c4717de367fe3bf1cf56bd8ef2bd30586bed023;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_conn.c b/src/xcb_conn.c index 35b9996..a017c20 100644 --- a/src/xcb_conn.c +++ b/src/xcb_conn.c @@ -257,6 +257,7 @@ xcb_connection_t *xcb_connect_to_fd(int fd, xcb_auth_info_t *auth_info) { xcb_connection_t* c; +#ifndef _WIN32 #ifndef USE_POLL if(fd >= FD_SETSIZE) /* would overflow in FD_SET */ { @@ -264,6 +265,7 @@ xcb_connection_t *xcb_connect_to_fd(int fd, xcb_auth_info_t *auth_info) return (xcb_connection_t *) &error_connection; } #endif +#endif /* !_WIN32*/ c = calloc(1, sizeof(xcb_connection_t)); if(!c) {