diff options
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/connect.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/libssh/connect.c b/libssh/connect.c index 07b7669..ec77ae3 100644 --- a/libssh/connect.c +++ b/libssh/connect.c @@ -23,23 +23,31 @@ * vim: ts=2 sw=2 et cindent */ -#include <string.h> +#include <errno.h> +#include <fcntl.h> #include <stdio.h> -#include <unistd.h> #include <stdlib.h> -#include <errno.h> +#include <string.h> +#include <unistd.h> + #ifdef _WIN32 -#define _WIN32_WINNT 0x0501 //getaddrinfo, freeaddrinfo, getnameinfo +/* getaddrinfo, freeaddrinfo, getnameinfo */ +#define _WIN32_WINNT 0x0501 + #include <winsock2.h> #include <ws2tcpip.h> -#include "wspiapi.h" //workaround for w2k systems -#else + +#include "wspiapi.h" /* Workaround for w2k systems */ + +#else /* _WIN32 */ + #include <netdb.h> #include <sys/socket.h> #include <sys/select.h> #include <netinet/in.h> -#endif -#include <fcntl.h> + +#endif /* _WIN32 */ + #include "libssh/priv.h" #ifndef HAVE_SELECT |