diff options
author | Andreas Schneider <mail@cynapses.org> | 2010-05-12 20:52:02 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2010-05-12 21:01:18 +0200 |
commit | b1b42aeb9c2e16dbb990e26e96c7e1c4a277dd28 (patch) | |
tree | fae172f72f0daabadc6d0f32429f1884756c5ffa /libssh/keyfiles.c | |
parent | 56c867edfaa0640b443fba60697f06e603cbbbe5 (diff) | |
download | libssh-b1b42aeb9c2e16dbb990e26e96c7e1c4a277dd28.tar.gz libssh-b1b42aeb9c2e16dbb990e26e96c7e1c4a277dd28.tar.xz libssh-b1b42aeb9c2e16dbb990e26e96c7e1c4a277dd28.zip |
win: Added missing includes with newer MSCV.
Diffstat (limited to 'libssh/keyfiles.c')
-rw-r--r-- | libssh/keyfiles.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index 79b3bfe..ba9a051 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -34,6 +34,15 @@ #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> #endif |