win compile fix

svn path=/trunk/boinc/; revision=25710
This commit is contained in:
David Anderson 2012-05-23 23:30:41 +00:00
parent 9bba5f4349
commit 08a529cb86
1 changed files with 4 additions and 0 deletions

View File

@ -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();