X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcompat.h;fp=src%2Fcompat.h;h=87ad6f88356e968a961de363416d5b44f48227ea;hb=18770118e846622f59a86f9937a33da0bb761775;hp=d09ec4fea2a21d9f94ce41d975cf418bc55065f4;hpb=95dd79118759f3e14a3d3e093111676e2efea8f9;p=novacoin.git diff --git a/src/compat.h b/src/compat.h index d09ec4f..87ad6f8 100644 --- a/src/compat.h +++ b/src/compat.h @@ -11,6 +11,9 @@ #ifndef NOMINMAX #define NOMINMAX #endif +#ifndef _MSC_VER +#define FD_SETSIZE 1024 // max number of fds in fd_set +#endif #include #include #include @@ -23,11 +26,11 @@ #include #include #include +#endif +#ifndef _MSC_VER typedef u_int SOCKET; #endif - - #ifdef WIN32 #define MSG_NOSIGNAL 0 #define MSG_DONTWAIT 0