aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssh.h')
-rw-r--r--lib/ssh.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/ssh.h b/lib/ssh.h
index c271a06af..ec711fbe9 100644
--- a/lib/ssh.h
+++ b/lib/ssh.h
@@ -35,12 +35,19 @@
for snapshots done during the 0.19 days as well as things released once
it was bumped to 1.0 */
# define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS 1
-# define HAVE_LIBSSH2_SFTP_SEEK2 1
#else
# undef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS
-# undef HAVE_LIBSSH2_SFTP_SEEK2 1
#endif
+#if (LIBSSH2_VERSION_NUM >= 0x010000)
+/* libssh2_sftp_seek64() has only ever been provided by libssh2 1.0 or
+ later */
+# define HAVE_LIBSSH2_SFTP_SEEK64 1
+#else
+# undef HAVE_LIBSSH2_SFTP_SEEK64 1
+#endif
+
+
extern const struct Curl_handler Curl_handler_scp;
extern const struct Curl_handler Curl_handler_sftp;