1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

misc: Correctly guard the sys/time.h include

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2015-06-24 16:51:28 +02:00
parent 30a7229fc5
commit ef751a26d0
2 changed files with 8 additions and 3 deletions

View File

@@ -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>

View File

@@ -116,7 +116,11 @@ static poll_fn ssh_poll_emu;
#else /* _WIN32 */
#include <sys/select.h>
#include <sys/socket.h>
# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# endif
#endif /* _WIN32 */
#ifdef HAVE_UNISTD_H