PR ada/48711
* g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
From-SVN: r176265
+2011-07-14 Florian Weimer <fw@deneb.enyo.de>
+
+ PR ada/48711
+ * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
+
2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
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;