diff --git a/src/misc.c b/src/misc.c index 6daf60ab..64cda47b 100644 --- a/src/misc.c +++ b/src/misc.c @@ -33,9 +33,10 @@ #include #include -#ifndef HAVE_CLOCK_GETTIME +#ifdef HAVE_SYS_TIME_H #include -#endif /* HAVE_CLOCK_GETTIME */ +#endif /* HAVE_SYS_TIME_H */ + #endif /* _WIN32 */ #include diff --git a/src/poll.c b/src/poll.c index 05faba75..807b0a56 100644 --- a/src/poll.c +++ b/src/poll.c @@ -116,7 +116,11 @@ static poll_fn ssh_poll_emu; #else /* _WIN32 */ #include #include -#include + +# ifdef HAVE_SYS_TIME_H +# include +# endif + #endif /* _WIN32 */ #ifdef HAVE_UNISTD_H