From 08a529cb862c1462412cd80913a05f4d14d2a061 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 23 May 2012 23:30:41 +0000 Subject: [PATCH] win compile fix svn path=/trunk/boinc/; revision=25710 --- lib/network.h | 4 ++++ 1 file changed, 4 insertions(+) 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();