From e5bf645010f74408060ced7d0c327a5f65823d1b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 1 Dec 2009 16:15:54 +0100 Subject: Fixed uint* to work on Windows. Thanks to Patrick Spendrin. --- include/libssh/libssh.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/libssh/libssh.h') 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 + #ifndef socklen_t + #define socklen_t int + #endif #else /* _WIN32 */ #include /* for fd_set * */ #include -- cgit