# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1320834898 0 # Node ID 03f0a57c9e87176775bb9b8dba74ab40ce467244 # Parent 552da4dea7d1eb02a4d00851aeda8d992a8f0f60 Make sure socklen_t gets defined when building with Visual Studio. diff -r 552da4dea7d1 -r 03f0a57c9e87 compat.h --- a/compat.h Wed Nov 09 09:35:01 2011 +0000 +++ b/compat.h Wed Nov 09 10:34:58 2011 +0000 @@ -320,6 +320,11 @@ } #endif +/* Visual Studio doesn't define this... so just in case */ +#ifndef socklen_t +typedef int socklen_t; +#endif + #define socksprint(a, b) sockwrite(a, b, strlen(b), 0) char * API vargs(char *buf, int len, char *format, ...);