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/socket.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/socket.c')
-rw-r--r-- | libssh/socket.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libssh/socket.c b/libssh/socket.c index b555c54..3378923 100644 --- a/libssh/socket.c +++ b/libssh/socket.c @@ -28,12 +28,24 @@ #ifdef _WIN32 #include <winsock2.h> #include <ws2tcpip.h> -#else +#if _MSC_VER >= 1400 +#include <io.h> +#undef open +#define open _open +#undef close +#define close _close +#undef read +#define read _read +#undef write +#define write _write +#endif /* _MSC_VER */ +#else /* _WIN32 */ #include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> -#endif +#endif /* _WIN32 */ + #include "libssh/priv.h" #include "libssh/callbacks.h" #include "libssh/socket.h" |