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 ) 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 ; 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 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 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--