diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-03-08 09:48:31 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-03-08 09:48:31 +0000 |
commit | e1a1796783b30f2453a423c13493539058045c2a (patch) | |
tree | 43c573e08ba237094454aa7cc47651ea7b466b14 /include | |
parent | b9e6ce934d3a7ab16a55a283296701985f426d5d (diff) | |
download | libssh-e1a1796783b30f2453a423c13493539058045c2a.tar.gz libssh-e1a1796783b30f2453a423c13493539058045c2a.tar.xz libssh-e1a1796783b30f2453a423c13493539058045c2a.zip |
Fix build on Windows.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@238 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/sftp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index 0ab3aeec..729f0ec9 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -49,6 +49,15 @@ extern "C" { #define SFTP_DEPRECATED #endif +#ifdef _WIN32 +#ifndef uid_t + typedef long uid_t; +#endif /* uid_t */ +#ifndef gid_t + typedef long gid_t; +#endif /* gid_t */ +#endif /* _WIN32 */ + typedef struct sftp_session_struct { SSH_SESSION *session; CHANNEL *channel; |