X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcompat.h;h=c38e2fa7b4bc593c149605b56b3eff97fa6cb8e8;hb=428f94b5411bf51b6e77d611daa709dfbb063966;hp=db340445b242c37f2744145aa162355e88b539fb;hpb=ed6d0b5f852dc5f1c9407abecb5a9c6a7e42b4b2;p=novacoin.git diff --git a/src/compat.h b/src/compat.h index db34044..c38e2fa 100644 --- a/src/compat.h +++ b/src/compat.h @@ -1,7 +1,7 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying -// file license.txt or http://www.opensource.org/licenses/mit-license.php. +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef _BITCOIN_COMPAT_H #define _BITCOIN_COMPAT_H 1 @@ -11,23 +11,32 @@ #ifndef NOMINMAX #define NOMINMAX #endif +#ifndef _MSC_VER +#ifdef FD_SETSIZE +#undef FD_SETSIZE +#endif +#define FD_SETSIZE 1024 // max number of fds in fd_set +#endif #include #include #include #else #include #include +#ifdef ANDROID +#include +#else #include +#endif #include #include #include -#include -#endif -#ifdef BSD #include -#endif +#include typedef u_int SOCKET; +#endif + #ifdef WIN32 #define MSG_NOSIGNAL 0 #define MSG_DONTWAIT 0 @@ -61,5 +70,4 @@ inline int myclosesocket(SOCKET& hSocket) } #define closesocket(s) myclosesocket(s) - #endif