[Bitcoin-development] Patch to provide MSG_NOSIGNAL defn where not available
Venkatesh Srinivas
me at endeavour.zapto.org
Fri Aug 19 13:52:27 UTC 2011
Hi,
The attached patch defines MSG_NOSIGNAL to 0 on platforms where it is
unavailable. Previously this definition was only available under
__WXMSW__.
-- vs
-------------- next part --------------
From 8299efe45e090b81c988bcdca58c8e25c0001841 Mon Sep 17 00:00:00 2001
From: Venkatesh Srinivas <me at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20110819/7a3ca546/attachment.sig>
More information about the bitcoin-dev
mailing list