From 7609ac60a1a52cda5b6abbc03dc89564f2e38ce6 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 5 May 2021 09:12:39 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20error:=20dereferencing=20pointer=20to=20i?= =?UTF-8?q?ncomplete=20type=20=E2=80=98struct=20timeval=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Xiang Xiao Reviewed-by: Jakub Jelen Change-Id: I99d2016595966d805c9e27b5c2f2a0a5b4ad8611 (cherry picked from commit 07245c1cdd18df90be85a1f163972ec18956a7cd) --- src/channels.c | 3 +++ src/connect.c | 3 +++ src/sftp.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/channels.c b/src/channels.c index 77229abf..1041dbff 100644 --- a/src/channels.c +++ b/src/channels.c @@ -29,6 +29,9 @@ #include #include #include +#ifdef HAVE_SYS_TIME_H +#include +#endif /* HAVE_SYS_TIME_H */ #ifndef _WIN32 #include diff --git a/src/connect.c b/src/connect.c index 252e2c63..ce4d58df 100644 --- a/src/connect.c +++ b/src/connect.c @@ -29,6 +29,9 @@ #include #include #include +#ifdef HAVE_SYS_TIME_H +#include +#endif /* HAVE_SYS_TIME_H */ #include "libssh/libssh.h" #include "libssh/misc.h" diff --git a/src/sftp.c b/src/sftp.c index 5c411395..a8346040 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -32,6 +32,9 @@ #include #include #include +#ifdef HAVE_SYS_TIME_H +#include +#endif /* HAVE_SYS_TIME_H */ #include #include #include