* Fix PR ada/48711
@ 2011-07-14 9:32 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2011-07-14 9:32 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 340 bytes --]
This is the build failure of GNAT 4.6.x on Windows. The patch was posted in
September of last year: http://gcc.gnu.org/ml/gcc/2010-09/msg00228.html
Applied on the mainline and 4.6 branch.
2011-07-14 Florian Weimer <fw@deneb.enyo.de>
PR ada/48711
* g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
--
Eric Botcazou
[-- Attachment #2: pr48711.diff --]
[-- Type: text/x-diff, Size: 543 bytes --]
Index: g-socthi-mingw.adb
===================================================================
--- g-socthi-mingw.adb (revision 176261)
+++ g-socthi-mingw.adb (working copy)
@@ -277,7 +277,8 @@ package body GNAT.Sockets.Thin is
use type C.size_t;
Fill : constant Boolean :=
- (C.unsigned (Flags) and SOSC.MSG_WAITALL) /= 0;
+ SOSC.MSG_WAITALL /= -1
+ and then (C.unsigned (Flags) and SOSC.MSG_WAITALL) /= 0;
-- Is the MSG_WAITALL flag set? If so we need to fully fill all vectors
Res : C.int;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-14 9:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-14 9:32 Fix PR ada/48711 Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).