Fix windows-specific socket stuff in SFTP class

This commit is contained in:
Timothy Warren 2015-04-08 19:39:53 -04:00
parent d204a624e4
commit 2e118a27aa
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ SFTP::~SFTP() {
libssh2_sftp_shutdown(sftp_session);
libssh2_session_disconnect(session, "Normal Shutdown, Thank you for playing");
libssh2_session_free(session);
#ifdef __WXWIN__
#ifdef WIN32
closesocket(sock);
#else
close(sock);

View File

@ -13,13 +13,13 @@
// Socket includes
#include <cstring>
#ifdef __WXWIN__
#ifdef WIN32
#include <winsock2.h>
#else
#include <sys/socket.h>
#include <netdb.h>
#endif
#include <netdb.h>
#include <stdio.h>
// libssh2 includes