From 78fdfbea666201b25919dd67454eb04d6a34326f Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Fri, 12 Feb 2021 15:56:15 +0100 Subject: 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. --- src/netbase.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/netbase.cpp') 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 +#include #include #include #include @@ -30,10 +31,6 @@ #include #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); -- cgit v1.2.3