diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-11-05 18:03:34 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-11-05 18:03:34 +0100 |
commit | 422271bd40d3b2d89fd02232b715385286ce032a (patch) | |
tree | 207d46eb007dbdadcb7ca9100e3488441e57c2e7 | |
parent | 801bc29494f7b0da377334a9e48eff698d53376d (diff) | |
download | libssh-422271bd40d3b2d89fd02232b715385286ce032a.tar.gz libssh-422271bd40d3b2d89fd02232b715385286ce032a.tar.xz libssh-422271bd40d3b2d89fd02232b715385286ce032a.zip |
connector: Fix build with Visual Studio
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | src/connector.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 <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; |