      int i = 0;
      int ret = 0,err = 0;
      struct iovec *vec;
-@@ -191,10 +208,17 @@ static int write_vec(xcb_connection_t *c, struct iovec **vector, int *count)
+@@ -191,10 +212,17 @@ static int write_vec(xcb_connection_t *c, struct iovec **vector, int *count)
      while(i < *count)
      {         	 
           ret = send(c->fd,vec->iov_base,vec->iov_len,0);	 

 static int set_fd_flags(const int fd)
 {
 /* Win32 doesn't have file descriptors and the fcntl function. This block sets the socket in non-blocking mode */
 
 #ifdef _WIN32
    u_long iMode = 1; /* non-zero puts it in non-blocking mode, 0 in blocking mode */   
    int ret = 0;
 
@@ -179,7 +195,8 @@ static int write_vec(xcb_connection_t *c, struct iovec **vector, int *count)
     int n;
     assert(!c->out.queue_len);
 

 pkg_failed=no
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5
diff --git a/src/xcb_conn.c b/src/xcb_conn.c
index 725502a..84c6a5f 100644
--- a/src/xcb_conn.c
+++ b/src/xcb_conn.c
@@ -63,6 +63,26 @@ static const int xcb_con_error = XCB_CONN_ERROR;
 static const int xcb_con_closed_mem_er = XCB_CONN_CLOSED_MEM_INSUFFICIENT;
 static const int xcb_con_closed_parse_er = XCB_CONN_CLOSED_PARSE_ERR;
 
