File tree Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -96,4 +96,14 @@ bool static inline IsSelectableSocket(const SOCKET& s) {
96
96
#endif
97
97
}
98
98
99
+ // MSG_NOSIGNAL is not available on some platforms, if it doesn't exist define it as 0
100
+ #if !defined(MSG_NOSIGNAL )
101
+ #define MSG_NOSIGNAL 0
102
+ #endif
103
+
104
+ // MSG_DONTWAIT is not available on some platforms, if it doesn't exist define it as 0
105
+ #if !defined(MSG_DONTWAIT )
106
+ #define MSG_DONTWAIT 0
107
+ #endif
108
+
99
109
#endif // BITCOIN_COMPAT_H
Original file line number Diff line number Diff line change 11
11
12
12
#include < banman.h>
13
13
#include < clientversion.h>
14
+ #include < compat.h>
14
15
#include < consensus/consensus.h>
15
16
#include < crypto/sha256.h>
16
17
#include < net_permissions.h>
@@ -72,16 +73,6 @@ static constexpr std::chrono::seconds MAX_UPLOAD_TIMEFRAME{60 * 60 * 24};
72
73
// We add a random period time (0 to 1 seconds) to feeler connections to prevent synchronization.
73
74
#define FEELER_SLEEP_WINDOW 1
74
75
75
- // MSG_NOSIGNAL is not available on some platforms, if it doesn't exist define it as 0
76
- #if !defined(MSG_NOSIGNAL)
77
- #define MSG_NOSIGNAL 0
78
- #endif
79
-
80
- // MSG_DONTWAIT is not available on some platforms, if it doesn't exist define it as 0
81
- #if !defined(MSG_DONTWAIT)
82
- #define MSG_DONTWAIT 0
83
- #endif
84
-
85
76
/* * Used to pass flags to the Bind() function */
86
77
enum BindFlags {
87
78
BF_NONE = 0 ,
Original file line number Diff line number Diff line change 5
5
6
6
#include < netbase.h>
7
7
8
+ #include < compat.h>
8
9
#include < sync.h>
9
10
#include < tinyformat.h>
10
11
#include < util/sock.h>
30
31
#include < poll.h>
31
32
#endif
32
33
33
- #if !defined(MSG_NOSIGNAL)
34
- #define MSG_NOSIGNAL 0
35
- #endif
36
-
37
34
// Settings
38
35
static Mutex g_proxyinfo_mutex;
39
36
static proxyType proxyInfo[NET_MAX] GUARDED_BY(g_proxyinfo_mutex);
You can’t perform that action at this time.
0 commit comments