diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-12-01 16:15:54 +0100 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-12-01 16:15:54 +0100 |
commit | 48b719cf68db72f77a650e235ffa87bdd925ed6b (patch) | |
tree | f8da1e5252c785b5e7f372252028f1a6875b9fc8 /include/libssh/libssh.h | |
parent | 96afa4530c98447d1d8a8971da8cc84168983e81 (diff) | |
download | libssh-48b719cf68db72f77a650e235ffa87bdd925ed6b.tar.gz libssh-48b719cf68db72f77a650e235ffa87bdd925ed6b.tar.xz libssh-48b719cf68db72f77a650e235ffa87bdd925ed6b.zip |
Fixed uint* to work on Windows.
Thanks to Patrick Spendrin.
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index a17e90a2..b8462209 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -50,6 +50,7 @@ #ifdef _MSC_VER /* Visual Studio hasn't inttypes.h so it doesn't know uint32_t */ + typedef int int32_t; typedef unsigned int uint32_t; typedef unsigned short uint16_t; typedef unsigned char uint8_t; @@ -62,6 +63,9 @@ #ifdef _WIN32 #include <winsock2.h> + #ifndef socklen_t + #define socklen_t int + #endif #else /* _WIN32 */ #include <sys/select.h> /* for fd_set * */ #include <netdb.h> |