mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user