summaryrefslogtreecommitdiffstats
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-17 11:16:24 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-17 11:23:50 +0200
commita375ebe29b7947a42d845f6f84c9129c0a8ee0aa (patch)
treec1028a8b996eb7e2481fea053c5a5fa184b6fb5c /include/libssh
parentb2f49a6a93db0b6039c609a4e60e3fbc70b77260 (diff)
poll: Fixed a malfunction with wrong max fd value check.
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 8f064f72..00f6d7a6 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -119,10 +119,14 @@ typedef struct ssh_string_struct* ssh_string;
/* Socket type */
#ifdef _WIN32
-#define socket_t SOCKET
-#else
+#ifndef socket_t
+typedef SOCKET socket_t;
+#endif /* socket_t */
+#else /* _WIN32 */
+#ifndef socket_t
typedef int socket_t;
#endif
+#endif /* _WIN32 */
/* the offsets of methods */
enum ssh_kex_types_e {