* [Bitcoin-development] Patch to provide MSG_NOSIGNAL defn where not available
@ 2011-08-19 13:52 Venkatesh Srinivas
0 siblings, 0 replies; only message in thread
From: Venkatesh Srinivas @ 2011-08-19 13:52 UTC (permalink / raw)
To: bitcoin-development
[-- Attachment #1.1: Type: text/plain, Size: 158 bytes --]
Hi,
The attached patch defines MSG_NOSIGNAL to 0 on platforms where it is
unavailable. Previously this definition was only available under
__WXMSW__.
-- vs
[-- Attachment #1.2: 0001-Define-MSG_NOSIGNAL-to-0-on-platforms-where-it-is-un.patch --]
[-- Type: text/plain, Size: 712 bytes --]
From 8299efe45e090b81c988bcdca58c8e25c0001841 Mon Sep 17 00:00:00 2001
From: Venkatesh Srinivas <me@endeavour.zapto.org>
Date: Fri, 19 Aug 2011 09:41:04 -0400
Subject: [PATCH] Define MSG_NOSIGNAL to 0 on platforms where it is unavailable.
---
src/util.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/util.h b/src/util.h
index 1e4ceb2..9d3824f 100644
--- a/src/util.h
+++ b/src/util.h
@@ -89,8 +89,11 @@ T* alignup(T* p)
return u.ptr;
}
-#ifdef __WXMSW__
+#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
+#endif
+
+#ifdef __WXMSW__
#define MSG_DONTWAIT 0
#ifndef UINT64_MAX
#define UINT64_MAX _UI64_MAX
--
1.7.2.3
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-19 13:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-19 13:52 [Bitcoin-development] Patch to provide MSG_NOSIGNAL defn where not available Venkatesh Srinivas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox