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.
This commit is contained in:
Andreas Schneider
2009-12-09 13:02:48 +01:00
parent fd6823691b
commit 2aabbd6245

View File

@@ -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>