From: ktietz Date: Mon, 4 Apr 2011 07:31:11 +0000 (+0000) Subject: 2011-04-04 Kai Tietz X-Git-Tag: upstream/4.9.2~21750 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afd748243d37b7b4305ca8f537fd2a9b5c489415;p=platform%2Fupstream%2Flinaro-gcc.git 2011-04-04 Kai Tietz PR ada/47163 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets to flag value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171926 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 8f164e5..77cf533 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2011-04-04 Kai Tietz + + PR ada/47163 + * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows + targets to flag value. + 2011-04-02 Eric Botcazou * gcc-interface/utils2.c (build_allocator): In the unconstrained array diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index ed3653a..ba72023 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -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")