1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

cmake: Check for io.h on Windows

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2016-11-06 11:57:52 +01:00
parent 528b9c5323
commit 5d1a8cd88b
5 changed files with 12 additions and 7 deletions

View File

@@ -27,7 +27,7 @@
#define CHUNKSIZE 4096
#ifdef _WIN32
# if _MSC_VER >= 1400
# ifdef HAVE_IO_H
# include <io.h>
# undef open
# define open _open
@@ -37,7 +37,7 @@
# define read _read
# undef unlink
# define unlink _unlink
# endif /* _MSC_VER */
# endif /* HAVE_IO_H */
#endif
struct ssh_connector_struct {