summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-17 13:18:23 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-17 13:18:23 +0200
commit22d975a24b69040b28396545e046d2334dd4c386 (patch)
tree04d31db8fbdfc3e6983d75a9c5e991a5e2977aaf /include
parentaeb9f3e3895ed3039bcde02cd862e38aa1e369e0 (diff)
socket: Fixed checks for max fd.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libssh.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 00f6d7a6..0b771272 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -128,6 +128,8 @@ typedef int socket_t;
#endif
#endif /* _WIN32 */
+#define SSH_INVALID_SOCKET ((socket_t) -1)
+
/* the offsets of methods */
enum ssh_kex_types_e {
SSH_KEX=0,