diff --git a/src/channels.c b/src/channels.c index 11a9413a..b3a0d494 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 00b5b98f..2abe2ed5 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