diff --git a/src/connector.c b/src/connector.c index 6f05008c..b2f03abd 100644 --- a/src/connector.c +++ b/src/connector.c @@ -26,6 +26,20 @@ #include #define CHUNKSIZE 4096 +#ifdef _WIN32 +# if _MSC_VER >= 1400 +# include +# 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;