From 23dec383f7580acff3a069f34a27c539d0ae1493 Mon Sep 17 00:00:00 2001 From: Bob Kast Date: Thu, 20 Mar 2014 14:43:33 -0400 Subject: [PATCH] libssh2.h: on Windows, a socket is of type SOCKET, not int --- include/libssh2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/libssh2.h b/include/libssh2.h index 3cb2be5..322aa5e 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -281,7 +281,8 @@ typedef struct _LIBSSH2_POLLFD { unsigned char type; /* LIBSSH2_POLLFD_* below */ union { - int socket; /* File descriptors -- examined with system select() call */ + libssh2_socket_t socket; /* File descriptors -- examined with + system select() call */ LIBSSH2_CHANNEL *channel; /* Examined by checking internal state */ LIBSSH2_LISTENER *listener; /* Read polls only -- are inbound connections waiting to be accepted? */