aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-02-12 15:56:15 +0100
committerVasil Dimov <vd@FreeBSD.org>2021-03-01 13:22:17 +0100
commit78fdfbea666201b25919dd67454eb04d6a34326f (patch)
tree95fd390aa3d5666b17e7895c8a7f0b5d0bc138d8 /src/netbase.cpp
parent34bcfab562bac9887ca9c3831cf4fd0ee7f98149 (diff)
net: dedup MSG_NOSIGNAL and MSG_DONTWAIT definitions
Deduplicate `MSG_NOSIGNAL` and `MSG_DONTWAIT` definitions from `net.cpp` and `netbase.cpp` to `compat.h` where they can also be reused by other code.
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 5a714f0026..7ccd24a778 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -5,6 +5,7 @@
#include <netbase.h>
+#include <compat.h>
#include <sync.h>
#include <tinyformat.h>
#include <util/sock.h>
@@ -30,10 +31,6 @@
#include <poll.h>
#endif
-#if !defined(MSG_NOSIGNAL)
-#define MSG_NOSIGNAL 0
-#endif
-
// Settings
static Mutex g_proxyinfo_mutex;
static proxyType proxyInfo[NET_MAX] GUARDED_BY(g_proxyinfo_mutex);