aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-05-05 07:38:53 +0000
committerAndreas Schneider <mail@cynapses.org>2009-05-05 07:38:53 +0000
commit57b7e7339429c5060a0a093be3e053bef14f2f61 (patch)
tree98543d9fb208601a512e1c1cf6d46dbffcd59f11 /libssh
parent33a640e3480b21bc9e7955ef29ea961460f3d7e3 (diff)
downloadlibssh-57b7e7339429c5060a0a093be3e053bef14f2f61.tar.gz
libssh-57b7e7339429c5060a0a093be3e053bef14f2f61.tar.xz
libssh-57b7e7339429c5060a0a093be3e053bef14f2f61.zip
Reoder define and includes.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@724 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh')
-rw-r--r--libssh/connect.c24
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