diff options
author | Kai Tietz <ktietz@redhat.com> | 2011-04-04 09:31:11 +0200 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2011-04-04 09:31:11 +0200 |
commit | ab380bb46e922619b4a1593cf839d703ca71ccca (patch) | |
tree | da0a3f0d8530adf5bd1281bb9305fc86c18bb9cb /gcc/ada/s-oscons-tmplt.c | |
parent | 112a861d6d6cbc78372888692043ebbb70c310d1 (diff) | |
download | gcc-ab380bb46e922619b4a1593cf839d703ca71ccca.zip gcc-ab380bb46e922619b4a1593cf839d703ca71ccca.tar.gz gcc-ab380bb46e922619b4a1593cf839d703ca71ccca.tar.bz2 |
re PR ada/47163 (Failure building target-libada for MingW64)
2011-04-04 Kai Tietz <ktietz@redhat.com>
PR ada/47163
* s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows
targets to flag value.
From-SVN: r171926
Diffstat (limited to 'gcc/ada/s-oscons-tmplt.c')
-rw-r--r-- | gcc/ada/s-oscons-tmplt.c | 5 |
1 files changed, 5 insertions, 0 deletions
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") |