aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2016-11-06 11:57:52 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-11-06 11:57:52 +0100
commit5d1a8cd88b396e895fdda9059a3795303747aaa3 (patch)
treebbcc7d024b7f282296f161b6f62ae70755df4002 /src/misc.c
parent528b9c5323c61e65877c5fa0dd0f5444edccc981 (diff)
downloadlibssh-5d1a8cd88b396e895fdda9059a3795303747aaa3.tar.gz
libssh-5d1a8cd88b396e895fdda9059a3795303747aaa3.tar.xz
libssh-5d1a8cd88b396e895fdda9059a3795303747aaa3.zip
cmake: Check for io.h on Windows
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc.c b/src/misc.c
index a3aa1b93..fe62b448 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -59,9 +59,9 @@
#include <shlobj.h>
#include <direct.h>
-#if _MSC_VER >= 1400
-# include <io.h>
-#endif /* _MSC_VER */
+#ifdef HAVE_IO_H
+#include <io.h>
+#endif /* HAVE_IO_H */
#endif /* _WIN32 */