diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-28 14:29:44 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-28 14:29:44 +0200 |
commit | 561441105f967f944f5da30523a6d1f8a894cf01 (patch) | |
tree | 8951aa3d6193242669e5580dd11fbfadb1e194d3 | |
parent | 7c28d0ce6d38a4e99e981fc3abf380e4cf29a57e (diff) | |
download | libssh-561441105f967f944f5da30523a6d1f8a894cf01.tar.gz libssh-561441105f967f944f5da30523a6d1f8a894cf01.tar.xz libssh-561441105f967f944f5da30523a6d1f8a894cf01.zip |
pki: Add Windows defines.
-rw-r--r-- | src/pki.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -40,6 +40,20 @@ #include <sys/stat.h> #include <sys/types.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 +# undef unlink +# define unlink _unlink +# endif /* _MSC_VER */ +#endif + #include "libssh/libssh.h" #include "libssh/session.h" #include "libssh/priv.h" |