aboutsummaryrefslogtreecommitdiff
path: root/src/poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/poll.c')
-rw-r--r--src/poll.c6
1 files changed, 5 insertions, 1 deletions
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 <sys/select.h>
#include <sys/socket.h>
-#include <sys/time.h>
+
+# ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+# endif
+
#endif /* _WIN32 */
#ifdef HAVE_UNISTD_H