1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki: Add Windows defines.

This commit is contained in:
Andreas Schneider
2011-08-28 14:29:44 +02:00
parent 7c28d0ce6d
commit 561441105f

View File

@@ -40,6 +40,20 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.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/libssh.h"
#include "libssh/session.h" #include "libssh/session.h"
#include "libssh/priv.h" #include "libssh/priv.h"