aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2016-11-06 11:52:12 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-11-06 11:52:12 +0100
commit528b9c5323c61e65877c5fa0dd0f5444edccc981 (patch)
tree978e1a64765f31bb5bb1a7bb365449dab0b060bb /src/misc.c
parentfab85b495e1bb023017b8da916d679e52f39c3f4 (diff)
downloadlibssh-528b9c5323c61e65877c5fa0dd0f5444edccc981.tar.gz
libssh-528b9c5323c61e65877c5fa0dd0f5444edccc981.tar.xz
libssh-528b9c5323c61e65877c5fa0dd0f5444edccc981.zip
cmake: Correctly check for sys/[u]time.h
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/misc.c b/src/misc.c
index 64cda47b..a3aa1b93 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -33,10 +33,6 @@
#include <netinet/in.h>
#include <arpa/inet.h>
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif /* HAVE_SYS_TIME_H */
-
#endif /* _WIN32 */
#include <limits.h>
@@ -47,6 +43,10 @@
#include <sys/types.h>
#include <ctype.h>
#include <time.h>
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif /* HAVE_SYS_TIME_H */
+
#ifdef _WIN32