summaryrefslogtreecommitdiff
path: root/45/b5c0c1e7d9b0a1a0d71b649dedbde74c30f767
blob: 7d9b30af1c328699338d0a0e50f8962a8811354f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193]
	helo=mx.sourceforge.net)
	by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <me@acm.jhu.edu>) id 1QuPV2-0003yb-5p
	for bitcoin-development@lists.sourceforge.net;
	Fri, 19 Aug 2011 13:52:40 +0000
X-ACL-Warn: 
Received: from batman.acm.jhu.edu ([128.220.251.35])
	by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) id 1QuPUx-0007fa-Dk
	for bitcoin-development@lists.sourceforge.net;
	Fri, 19 Aug 2011 13:52:40 +0000
Received: from batman.acm.jhu.edu (localhost.localdomain [127.0.0.1])
	by batman.acm.jhu.edu (Postfix) with ESMTP id CB5E7CFDAA
	for <bitcoin-development@lists.sourceforge.net>;
	Fri, 19 Aug 2011 09:52:27 -0400 (EDT)
Received: by batman.acm.jhu.edu (Postfix, from userid 1003)
	id 9C89DCFDAE; Fri, 19 Aug 2011 09:52:27 -0400 (EDT)
Date: Fri, 19 Aug 2011 09:52:27 -0400
From: Venkatesh Srinivas <me@endeavour.zapto.org>
To: bitcoin-development@lists.sourceforge.net
Message-ID: <20110819135225.GB28263@centaur.acm.jhu.edu>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="wLAMOaPNJ0fu1fTG"
Content-Disposition: inline
User-Agent: Mutt/1.5.20 (2009-08-17)
X-Virus-Scanned: ClamAV using ClamSMTP
X-Spam-Score: -1.1 (-)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
	See http://spamassassin.org/tag/ for more details.
	-1.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	domain -0.0 AWL AWL: From: address is in the auto white-list
X-Headers-End: 1QuPUx-0007fa-Dk
Subject: [Bitcoin-development] Patch to provide MSG_NOSIGNAL defn where not
	available
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Fri, 19 Aug 2011 13:52:40 -0000


--wLAMOaPNJ0fu1fTG
Content-Type: multipart/mixed; boundary="xo44VMWPx7vlQ2+2"
Content-Disposition: inline


--xo44VMWPx7vlQ2+2
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline

Hi,

The attached patch defines MSG_NOSIGNAL to 0 on platforms where it is
unavailable. Previously this definition was only available under
__WXMSW__.

-- vs

--xo44VMWPx7vlQ2+2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
	filename="0001-Define-MSG_NOSIGNAL-to-0-on-platforms-where-it-is-un.patch"
Content-Transfer-Encoding: quoted-printable

=46rom 8299efe45e090b81c988bcdca58c8e25c0001841 Mon Sep 17 00:00:00 2001
=46rom: 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 unavaila=
ble.

---
 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;
 }
=20
-#ifdef __WXMSW__
+#ifndef MSG_NOSIGNAL
 #define MSG_NOSIGNAL        0
+#endif
+
+#ifdef __WXMSW__
 #define MSG_DONTWAIT        0
 #ifndef UINT64_MAX
 #define UINT64_MAX          _UI64_MAX
--=20
1.7.2.3


--xo44VMWPx7vlQ2+2--

--wLAMOaPNJ0fu1fTG
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEAREIAAYFAk5OapkACgkQ+zApffxCWtAqOwCgoafffn/rGOGzykiTbY/NUTWp
HX8An2zq8GTYIfmZAarZmrD8J21TMDxp
=7P/A
-----END PGP SIGNATURE-----

--wLAMOaPNJ0fu1fTG--