Fix windows-specific socket stuff in SFTP class
This commit is contained in:
parent
d204a624e4
commit
2e118a27aa
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user