From ea7128d3bd1cfc4568ae9fc72b388d2cec361116 Mon Sep 17 00:00:00 2001 From: OldMiR <38997875+OldMiR@users.noreply.github.com> Date: Thu, 10 May 2018 17:01:18 +0300 Subject: [PATCH 1/2] Update netbase.cpp --- src/netbase.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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() From 61c7deaf341a53e6407e65e6638ed04112652294 Mon Sep 17 00:00:00 2001 From: OldMiR <38997875+OldMiR@users.noreply.github.com> Date: Thu, 10 May 2018 17:01:49 +0300 Subject: [PATCH 2/2] Update net.cpp --- src/net.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net.cpp b/src/net.cpp index f76f317..08e4e59 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