diff --git a/src/net.cpp b/src/net.cpp index 4bd534b..09ceca8 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -16,6 +16,10 @@ #include #endif +// MSG_NOSIGNAL is not available on some platforms, if it doesn't exist define it as 0 +#if !defined(MSG_NOSIGNAL) +#define MSG_NOSIGNAL 0 +#endif // Dump addresses to peers.dat every 15 minutes (900s) #define DUMP_ADDRESSES_INTERVAL 900 diff --git a/src/netbase.cpp b/src/netbase.cpp index 289da13..4eea5e5 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -17,6 +17,11 @@ #endif #endif +// MSG_NOSIGNAL is not available on some platforms, if it doesn't exist define it as 0 +#if !defined(MSG_NOSIGNAL) +#define MSG_NOSIGNAL 0 +#endif + #include // for to_lower() #include // for startswith() and endswith()