diff --git a/lib/network.h b/lib/network.h index ec43de197a..ab3a66aa8f 100644 --- a/lib/network.h +++ b/lib/network.h @@ -54,7 +54,11 @@ extern int get_socket_error(int fd); extern const char* socket_error_str(); extern void reset_dns(); +#if defined(_WIN32) && !defined(__CYGWIN32__) +typedef int BOINC_SOCKLEN_T; +#else typedef socklen_t BOINC_SOCKLEN_T; +#endif #if defined(_WIN32) && defined(USE_WINSOCK) extern int WinsockInitialize();