aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-11-29 16:39:56 +0000
committerYang Tse <yangsita@gmail.com>2008-11-29 16:39:56 +0000
commitc036f6ae2da0395a633dc1d11b68879fd6795e19 (patch)
tree94a08ea21e27e286fec83a8feeccf857804b4f48 /lib/ssh.c
parente35e2ea6ecb77d93be0ed99d01a84331d79d7cd0 (diff)
Adjust some libssh2 preprocessor symbol definition checks
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 1f1650e20..f826a4fa4 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -36,17 +36,6 @@
#include <libssh2.h>
#include <libssh2_sftp.h>
-#if !defined(LIBSSH2_VERSION_NUM) || (LIBSSH2_VERSION_NUM < 0x001000)
-#error "this requires libssh2 0.16 or later"
-#endif
-
-#if !defined(HAVE_LIBSSH2_SESSION_BLOCK_DIRECTION) && \
- (LIBSSH2_VERSION_NUM >= 0x001300)
-/* this is just a check for non-configure based systems to get this properly
- setup if libssh2 0.19+ is used */
-#define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTION 1
-#endif
-
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -2070,7 +2059,7 @@ static CURLcode ssh_easy_statemach(struct connectdata *conn)
bool block;
result = ssh_statemach_act(conn, &block);
-#ifdef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTION
+#ifdef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS
if((CURLE_OK == result) && block) {
int dir = libssh2_session_block_directions(sshc->ssh_session);
curl_socket_t sock = conn->sock[FIRSTSOCKET];