Updated patch for new SSH2 version.
This commit is contained in:
parent
147599a189
commit
73183ff0ff
@ -1,17 +1,20 @@
|
|||||||
diff --git "a/D:\\_Sandbox\\curl\\libssh2-x64\\src\\session.c.orig" "b/D:\\_Sandbox\\curl\\libssh2-x64\\src\\session.c"
|
src/session.c | 4 +++-
|
||||||
index e439acd..476a497 100644
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
--- "a/src/session.c"
|
|
||||||
+++ "b/src/session.c"
|
diff --git a/src/session.c b/src/session.c
|
||||||
@@ -58,6 +58,8 @@
|
index a4d602b..e653f1d 100644
|
||||||
#include "mac.h"
|
--- a/src/session.c
|
||||||
#include "misc.h"
|
+++ b/src/session.c
|
||||||
|
@@ -66,6 +66,8 @@
|
||||||
|
#undef libssh2_usec_t
|
||||||
|
#endif
|
||||||
|
|
||||||
+#define DIFFTIME(_b,_a) ((double)((_b) - (_a)))
|
+#define DIFFTIME(_b,_a) ((double)((_b) - (_a)))
|
||||||
+
|
+
|
||||||
/* libssh2_default_alloc
|
/* libssh2_default_alloc
|
||||||
*/
|
*/
|
||||||
static
|
static
|
||||||
@@ -610,7 +612,7 @@ int _libssh2_wait_socket(LIBSSH2_SESSION *session, time_t start_time)
|
@@ -602,7 +604,7 @@ int _libssh2_wait_socket(LIBSSH2_SESSION *session, time_t start_time)
|
||||||
(seconds_to_next == 0 ||
|
(seconds_to_next == 0 ||
|
||||||
ms_to_next > session->api_timeout)) {
|
ms_to_next > session->api_timeout)) {
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user