mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
connector: Fix build with Visual Studio
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -26,6 +26,20 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#define CHUNKSIZE 4096
|
#define CHUNKSIZE 4096
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
# if _MSC_VER >= 1400
|
||||||
|
# include <io.h>
|
||||||
|
# undef open
|
||||||
|
# define open _open
|
||||||
|
# undef close
|
||||||
|
# define close _close
|
||||||
|
# undef read
|
||||||
|
# define read _read
|
||||||
|
# undef unlink
|
||||||
|
# define unlink _unlink
|
||||||
|
# endif /* _MSC_VER */
|
||||||
|
#endif
|
||||||
|
|
||||||
struct ssh_connector_struct {
|
struct ssh_connector_struct {
|
||||||
ssh_session session;
|
ssh_session session;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user