From 818e9edfb1e8687eebd9f2ead26d4fb1621408e6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 29 Sep 2008 14:16:19 +0000 Subject: [PATCH] - Bug #1862727 fixed libssh2_poll() to work on windows (by defining HAVE_SELECT). --- NEWS | 2 ++ src/libssh2_priv.h | 2 +- win32/libssh2_config.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index ac247ab..db4291f 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ Version 0.19 ( ) ------------------------------- +- Bug #1862727 fixed libssh2_poll() to work on windows (by defining HAVE_SELECT). + - Based on bug #1815692, we introduce libssh2_sftp_seek2() that allows seeking beyond the 2GB margin even on 32bit machines. diff --git a/src/libssh2_priv.h b/src/libssh2_priv.h index 4a5b6ec..20025b1 100644 --- a/src/libssh2_priv.h +++ b/src/libssh2_priv.h @@ -56,7 +56,7 @@ #ifdef HAVE_POLL # include #else -# ifdef HAVE_SELECT +# if defined(HAVE_SELECT) && !defined(WIN32) # ifdef HAVE_SYS_SELECT_H # include # else diff --git a/win32/libssh2_config.h b/win32/libssh2_config.h index 65fcc30..92f1711 100644 --- a/win32/libssh2_config.h +++ b/win32/libssh2_config.h @@ -16,6 +16,7 @@ #define HAVE_WINSOCK2_H #define HAVE_IOCTLSOCKET +#define HAVE_SELECT /* same as WSABUF */ struct iovec {