diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-02-11 19:54:57 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-02-11 19:56:23 +0100 |
commit | 9bec3ee48e0d7598c0ecd5c99fba1398ddc601c9 (patch) | |
tree | 81c297754f02721b4b548ccdd9004ee245de2c36 /libssh | |
parent | 17ca9d9da78502c87eccbe6a1eb6cf4d6bde5706 (diff) | |
download | libssh-9bec3ee48e0d7598c0ecd5c99fba1398ddc601c9.tar.gz libssh-9bec3ee48e0d7598c0ecd5c99fba1398ddc601c9.tar.xz libssh-9bec3ee48e0d7598c0ecd5c99fba1398ddc601c9.zip |
Use closesocket in server.c for win32
Resolves #56
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libssh/server.c b/libssh/server.c index 81801e92..a1d234f3 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -278,7 +278,11 @@ void ssh_bind_free(ssh_bind sshbind){ } if (sshbind->bindfd >= 0) { +#ifdef _WIN32 + closesocket(sshbind->bindfd); +#else close(sshbind->bindfd); +#endif } sshbind->bindfd = -1; |