1
0
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:
Andreas Schneider
2016-11-05 18:03:34 +01:00
parent 801bc29494
commit 422271bd40

View File

@@ -26,6 +26,20 @@
#include <stdlib.h>
#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 {
ssh_session session;