From 2aabbd624522ee7480a311a118dfcdeff36574b8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 9 Dec 2009 13:02:48 +0100 Subject: [PATCH] Remove socklen_t definition. Tthe problem is that winsock2.h defines socklen_t as a typedef, not as a define, so depending on the order of includes you can get errors in ws2tcpip.h with msvc. --- include/libssh/libssh.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index b8462209..4ea7430b 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -63,9 +63,6 @@ #ifdef _WIN32 #include - #ifndef socklen_t - #define socklen_t int - #endif #else /* _WIN32 */ #include /* for fd_set * */ #include