aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
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:04 +0200
commitba03388031530fcf49b2c37ce0da801254e5075f (patch)
treec3485339d1d11c20a3daf12592c9a92d855721b7 /src/misc.c
parent8b73609e47ce83f1045fce95a0bf6dae5aae08dd (diff)
downloadlibssh-ba03388031530fcf49b2c37ce0da801254e5075f.tar.gz
libssh-ba03388031530fcf49b2c37ce0da801254e5075f.tar.xz
libssh-ba03388031530fcf49b2c37ce0da801254e5075f.zip
misc: Fix compilation on Windows.
Diffstat (limited to 'src/misc.c')
-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