diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-30 10:45:58 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-30 10:45:58 +0200 |
commit | 766bae9d7626bb596fc3b60d2cd5fe5a7fc356db (patch) | |
tree | ec6aa6d9ea44d8eea5c47a8d1245c4fbe2930d96 /include/libssh/sftp.h | |
parent | 94a57df0c9eceda18679b2823de74837fb5a73c1 (diff) | |
download | libssh-766bae9d7626bb596fc3b60d2cd5fe5a7fc356db.tar.gz libssh-766bae9d7626bb596fc3b60d2cd5fe5a7fc356db.tar.xz libssh-766bae9d7626bb596fc3b60d2cd5fe5a7fc356db.zip |
Fix build with MSVC.
Diffstat (limited to 'include/libssh/sftp.h')
-rw-r--r-- | include/libssh/sftp.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index a41681b..702dd8e 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -38,7 +38,11 @@ #ifndef SFTP_H #define SFTP_H -#include <libssh/libssh.h> + +#include <sys/types.h> + +#include "libssh.h" + #ifdef __cplusplus extern "C" { #endif @@ -51,11 +55,19 @@ extern "C" { #ifdef _WIN32 #ifndef uid_t - typedef long uid_t; + typedef uint32_t uid_t; #endif /* uid_t */ #ifndef gid_t - typedef long gid_t; + typedef uint32_t gid_t; #endif /* gid_t */ +#ifdef _MSC_VER +#ifndef mode_t + typedef uint32_t mode_t; +#endif /* mode_t */ +#ifndef ssize_t + typedef _W64 signed int ssize_t; +#endif /* ssize_t */ +#endif /* _MSC_VER */ #endif /* _WIN32 */ typedef struct sftp_ext_struct *sftp_ext; |