Message ID | BANLkTikiw-ekUyvjwWJeFJNbQQ8U4zdHrA@mail.gmail.com |
---|---|
State | New |
Headers | show |
* Kai Tietz, 2011-04-04 :
> So here is the patch without the part in g-socthi-mingw.adb.
Thanks, OK for me.
2011/4/4 Thomas Quinot <quinot@adacore.com>: > * Kai Tietz, 2011-04-04 : > >> So here is the patch without the part in g-socthi-mingw.adb. > > Thanks, OK for me. > > -- > Thomas Quinot, Ph.D. ** quinot@adacore.com ** Senior Software Engineer > AdaCore -- Paris, France -- New York, USA > Committed at revision 171926 to trunk. Thanks, Kai
Index: gcc/gcc/ada/s-oscons-tmplt.c =================================================================== --- gcc.orig/gcc/ada/s-oscons-tmplt.c 2011-03-28 11:40:51.949851800 +0200 +++ gcc/gcc/ada/s-oscons-tmplt.c 2011-03-28 13:13:51.479759900 +0200 @@ -1084,6 +1084,11 @@ CND(MSG_PEEK, "Peek at incoming data") CND(MSG_EOR, "Send end of record") #ifndef MSG_WAITALL +#ifdef __MINWGW32__ +/* The value of MSG_WAITALL is 8. Nevertheless winsock.h doesn't + define it, but it is still usable as we link to winsock2 API. */ +# define MSG_WAITALL (1 << 3) +#else # define MSG_WAITALL -1 #endif CND(MSG_WAITALL, "Wait for full reception")