mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
cmake: Check for io.h on Windows
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# if _MSC_VER >= 1400
|
||||
# ifdef HAVE_IO_H
|
||||
# include <io.h>
|
||||
# undef open
|
||||
# define open _open
|
||||
@@ -51,7 +51,7 @@
|
||||
# define read _read
|
||||
# undef unlink
|
||||
# define unlink _unlink
|
||||
# endif /* _MSC_VER */
|
||||
# endif /* HAVE_IO_H */
|
||||
#endif
|
||||
|
||||
#include "libssh/libssh.h"
|
||||
|
Reference in New Issue
Block a user