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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user