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:04 +0200 |
commit | ba03388031530fcf49b2c37ce0da801254e5075f (patch) | |
tree | c3485339d1d11c20a3daf12592c9a92d855721b7 /src | |
parent | 8b73609e47ce83f1045fce95a0bf6dae5aae08dd (diff) | |
download | libssh-ba03388031530fcf49b2c37ce0da801254e5075f.tar.gz libssh-ba03388031530fcf49b2c37ce0da801254e5075f.tar.xz libssh-ba03388031530fcf49b2c37ce0da801254e5075f.zip |
misc: Fix compilation on Windows.
Diffstat (limited to 'src')
-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 |