1
0
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:
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

@@ -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"