diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-03-05 09:32:00 +0000 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-03-05 09:47:29 +0000 |
| commit | 25da1ee36cfb99f6ef60e7883952c2370c718725 (patch) | |
| tree | 305b5babe1c65e103ff63912b67524a9d8c20de9 /src/netbase.cpp | |
| parent | build: Probe MSG_DONTWAIT in the same way as MSG_NOSIGNAL (diff) | |
| download | discoin-25da1ee36cfb99f6ef60e7883952c2370c718725.tar.xz discoin-25da1ee36cfb99f6ef60e7883952c2370c718725.zip | |
build: cleanup: define MSG_DONTWAIT/MSG_NO_SIGNAL locally
Define MSG_DONTWAIT and MSG_NO_SIGNAL in the implementation files that
use them (`net.cpp` and `netbase.cpp`), instead of compat.h which is
included all over the place.
This avoids putting them in the global namespace, as defining them as 0
is a hack that works for our specific usage, but it is not a general
solution.
Also makes sure they are defined only once so the `!defined(MSG_x)` guard can go.
Diffstat (limited to 'src/netbase.cpp')
| -rw-r--r-- | src/netbase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index fc9a6ed0b..0f02e93e4 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -25,7 +25,7 @@ #include <boost/algorithm/string/case_conv.hpp> // for to_lower() #include <boost/algorithm/string/predicate.hpp> // for startswith() and endswith() -#if !defined(HAVE_MSG_NOSIGNAL) && !defined(MSG_NOSIGNAL) +#if !defined(HAVE_MSG_NOSIGNAL) #define MSG_NOSIGNAL 0 #endif |