mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
libssh2_sftp_seek2 was just renamed to libssh2_sftp_seek64 ...
This commit is contained in:
parent
7ffe62d901
commit
eab8c0d754
@ -435,8 +435,8 @@ static CURLcode ssh_getworkingpath(struct connectdata *conn,
|
|||||||
* Earlier libssh2 versions didn't have the ability to seek to 64bit positions
|
* Earlier libssh2 versions didn't have the ability to seek to 64bit positions
|
||||||
* with 32bit size_t.
|
* with 32bit size_t.
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_LIBSSH2_SFTP_SEEK2
|
#ifdef HAVE_LIBSSH2_SFTP_SEEK64
|
||||||
#define SFTP_SEEK(x,y) libssh2_sftp_seek2(x, (libssh2_uint64_t)y)
|
#define SFTP_SEEK(x,y) libssh2_sftp_seek64(x, (libssh2_uint64_t)y)
|
||||||
#else
|
#else
|
||||||
#define SFTP_SEEK(x,y) libssh2_sftp_seek(x, y)
|
#define SFTP_SEEK(x,y) libssh2_sftp_seek(x, y)
|
||||||
#endif
|
#endif
|
||||||
|
11
lib/ssh.h
11
lib/ssh.h
@ -35,12 +35,19 @@
|
|||||||
for snapshots done during the 0.19 days as well as things released once
|
for snapshots done during the 0.19 days as well as things released once
|
||||||
it was bumped to 1.0 */
|
it was bumped to 1.0 */
|
||||||
# define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS 1
|
# define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS 1
|
||||||
# define HAVE_LIBSSH2_SFTP_SEEK2 1
|
|
||||||
#else
|
#else
|
||||||
# undef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS
|
# undef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS
|
||||||
# undef HAVE_LIBSSH2_SFTP_SEEK2 1
|
|
||||||
#endif
|
#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_scp;
|
||||||
extern const struct Curl_handler Curl_handler_sftp;
|
extern const struct Curl_handler Curl_handler_sftp;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user