aboutsummaryrefslogtreecommitdiff
path: root/src/keyfiles.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-09-28 19:06:49 +0200
committerAndreas Schneider <asn@cynapses.org>2010-09-28 19:06:49 +0200
commit8c318fcb2145a0dfe94af7ba85640475a686d366 (patch)
tree1b2102417ec08757fb23a6d97442176aaee8f558 /src/keyfiles.c
parenta2fe4b2b2ce72ee824e915f130ec98b661b1966f (diff)
downloadlibssh-8c318fcb2145a0dfe94af7ba85640475a686d366.tar.gz
libssh-8c318fcb2145a0dfe94af7ba85640475a686d366.tar.xz
libssh-8c318fcb2145a0dfe94af7ba85640475a686d366.zip
keyfiles: Fixed the windows defines.
Diffstat (limited to 'src/keyfiles.c')
-rw-r--r--src/keyfiles.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/keyfiles.c b/src/keyfiles.c
index 9512de0a..ca84b819 100644
--- a/src/keyfiles.c
+++ b/src/keyfiles.c
@@ -33,17 +33,18 @@
#include <string.h>
#include <stdlib.h>
-#ifndef _WIN32
-#if _MSC_VER >= 1400
-#include <io.h>
-#undef open
-#define open _open
-#undef close
-#define close _close
-#undef read
-#define read _read
-#endif /* _MSC_VER */
-#include <arpa/inet.h>
+#ifdef _WIN32
+# if _MSC_VER >= 1400
+# include <io.h>
+# undef open
+# define open _open
+# undef close
+# define close _close
+# undef read
+# define read _read
+# endif /* _MSC_VER */
+#else
+# include <arpa/inet.h>
#endif
#include "libssh/priv.h"