diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-07-28 10:15:44 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2009-07-28 10:15:44 +0200 |
commit | 056b0f6f80112c19254a0c265d52720d299c65bc (patch) | |
tree | b06b173a93c4867a60c4e103f58ba1f992668109 /gcc/ada/g-socket.adb | |
parent | 5391897dbe2d7f3ae6a827c8573c465901d88897 (diff) | |
download | gcc-056b0f6f80112c19254a0c265d52720d299c65bc.zip gcc-056b0f6f80112c19254a0c265d52720d299c65bc.tar.gz gcc-056b0f6f80112c19254a0c265d52720d299c65bc.tar.bz2 |
[multiple changes]
2009-07-28 Sergey Rybin <rybin@adacore.com>
* gnat_ugn.texi: Add section about gnatcheck rule exemption.
2009-07-28 Vadim Godunko <godunko@adacore.com>
* s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
not defined by limits.h.
* g-socket.adb (Receive_Vector): Use minimum length from user's vector
length and maximum supported length of data vector.
2009-07-28 Gary Dismukes <dismukes@adacore.com>
* usage.adb: Inhibit printing gcc-specific switches for AAMP target.
* make.adb: Call Get_Target_Parameters before calling Usage so that
VM_Target and AAMP_On_Target will be set.
From-SVN: r150147
Diffstat (limited to 'gcc/ada/g-socket.adb')
-rw-r--r-- | gcc/ada/g-socket.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/g-socket.adb b/gcc/ada/g-socket.adb index c002054..c816312 100644 --- a/gcc/ada/g-socket.adb +++ b/gcc/ada/g-socket.adb @@ -1664,7 +1664,8 @@ package body GNAT.Sockets is (Msg_Name => System.Null_Address, Msg_Namelen => 0, Msg_Iov => Vector'Address, - Msg_Iovlen => SOSC.Msg_Iovlen_T (Vector'Length), + Msg_Iovlen => + SOSC.Msg_Iovlen_T'Min (Vector'Length, SOSC.IOV_MAX), Msg_Control => System.Null_Address, Msg_Controllen => 0, Msg_Flags => 0); |