re PR ada/47163 (Failure building target-libada for MingW64)
authorKai Tietz <ktietz@redhat.com>
Mon, 4 Apr 2011 07:31:11 +0000 (09:31 +0200)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 4 Apr 2011 07:31:11 +0000 (09:31 +0200)
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

gcc/ada/ChangeLog
gcc/ada/s-oscons-tmplt.c

index 8f164e542d289704bd74d948baca1cfbc863609e..77cf5337286b0cdae0619b19c8202320b8ad47cd 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2011-04-02  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/utils2.c (build_allocator): In the unconstrained array
index ed3653a48783b352d5bb7ea1d31c4ccc0c143163..ba7202315ca1b8a67bb758630fcf1f0621b7e36b 100644 (file)
@@ -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")