aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-05-26 11:19:25 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-05-26 11:20:25 +0200
commit44fed3eb9bfc9af7f7ce191c6608f12d6f710631 (patch)
tree0b74000698b85f18d5de2d2d337e69f3721ae619
parent36abd82a7e41477245f6c3e06bcf53e0c5e35b03 (diff)
downloadlibssh-44fed3eb9bfc9af7f7ce191c6608f12d6f710631.tar.gz
libssh-44fed3eb9bfc9af7f7ce191c6608f12d6f710631.tar.xz
libssh-44fed3eb9bfc9af7f7ce191c6608f12d6f710631.zip
misc: Fix compilation on Windows.
(cherry picked from commit ba03388031530fcf49b2c37ce0da801254e5075f)
-rw-r--r--src/misc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/misc.c b/src/misc.c
index fe04ac66..008be1b7 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -32,7 +32,11 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#endif
+
+#ifndef HAVE_CLOCK_GETTIME
+#include <sys/time.h>
+#endif /* HAVE_CLOCK_GETTIME */
+#endif /* _WIN32 */
#include <limits.h>
#include <stdio.h>
@@ -42,9 +46,6 @@
#include <sys/types.h>
#include <ctype.h>
#include <time.h>
-#ifndef HAVE_CLOCK_GETTIME
-#include <sys/time.h>
-#endif
#ifdef _WIN32