diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-05-26 11:19:25 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-05-26 11:20:25 +0200 |
commit | 44fed3eb9bfc9af7f7ce191c6608f12d6f710631 (patch) | |
tree | 0b74000698b85f18d5de2d2d337e69f3721ae619 | |
parent | 36abd82a7e41477245f6c3e06bcf53e0c5e35b03 (diff) | |
download | libssh-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.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |