diff options
-rw-r--r-- | src/misc.c | 5 | ||||
-rw-r--r-- | src/poll.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -33,9 +33,10 @@ #include <netinet/in.h> #include <arpa/inet.h> -#ifndef HAVE_CLOCK_GETTIME +#ifdef HAVE_SYS_TIME_H #include <sys/time.h> -#endif /* HAVE_CLOCK_GETTIME */ +#endif /* HAVE_SYS_TIME_H */ + #endif /* _WIN32 */ #include <limits.h> @@ -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 |