aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-12-09 13:02:48 +0100
committerAndreas Schneider <mail@cynapses.org>2009-12-09 13:04:26 +0100
commit2aabbd624522ee7480a311a118dfcdeff36574b8 (patch)
tree4cc3b3572fad1fed92942d0b7a9dfa9b2c046175
parentfd6823691b4fb3bb8bf0402458fc84b62dece64c (diff)
downloadlibssh-2aabbd624522ee7480a311a118dfcdeff36574b8.tar.gz
libssh-2aabbd624522ee7480a311a118dfcdeff36574b8.tar.xz
libssh-2aabbd624522ee7480a311a118dfcdeff36574b8.zip
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.
-rw-r--r--include/libssh/libssh.h3
1 files changed, 0 insertions, 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 <winsock2.h>
- #ifndef socklen_t
- #define socklen_t int
- #endif
#else /* _WIN32 */
#include <sys/select.h> /* for fd_set * */
#include <netdb.h>