diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-29 13:47:42 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-29 13:47:42 +0000 |
commit | 2c195e6cb826d4fc6ba35c96c21bb07340751853 (patch) | |
tree | f8c5efa510fefa4a36802cbc8fcf62ab4d7580b4 /gcc/ada/g-socket.adb | |
parent | 147ce7fac36e1c7b44b3ee84d2eacf1071830d7b (diff) | |
download | ppe42-gcc-2c195e6cb826d4fc6ba35c96c21bb07340751853.tar.gz ppe42-gcc-2c195e6cb826d4fc6ba35c96c21bb07340751853.zip |
2009-04-29 Arnaud Charlet <charlet@adacore.com>
* gnat_ugn.texi: Update some documentation about interfacing with C++
Mention -fkeep-inline-functions.
* gnat_ugn.texi: Minor edits
2009-04-29 Ed Schonberg <schonberg@adacore.com>
* sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
for a defaulted component of an enclosing aggregate, inherit the type
from the component declaration of the enclosing type.
2009-04-29 Albert Lee <lee@adacore.com>
* g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
(System.OS_Constants): New type Msg_Iovlen_T which follows whether the
msg_iovlen field in struct msghdr is 32 or 64 bits wide.
Relocate the Msghdr record type from GNAT.Sockets.Thin to
GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
type for the Msg_Iovlen field.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146969 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/g-socket.adb')
-rw-r--r-- | gcc/ada/g-socket.adb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ada/g-socket.adb b/gcc/ada/g-socket.adb index 70964053074..63f6d748142 100644 --- a/gcc/ada/g-socket.adb +++ b/gcc/ada/g-socket.adb @@ -1673,7 +1673,7 @@ package body GNAT.Sockets is (Msg_Name => System.Null_Address, Msg_Namelen => 0, Msg_Iov => Vector'Address, - Msg_Iovlen => Vector'Length, + Msg_Iovlen => SOSC.Msg_Iovlen_T (Vector'Length), Msg_Control => System.Null_Address, Msg_Controllen => 0, Msg_Flags => 0); @@ -1904,11 +1904,11 @@ package body GNAT.Sockets is Count : out Ada.Streams.Stream_Element_Count; Flags : Request_Flag_Type := No_Request_Flag) is - use type C.size_t; + use type SOSC.Msg_Iovlen_T; Res : ssize_t; - Iov_Count : C.size_t; - This_Iov_Count : C.size_t; + Iov_Count : SOSC.Msg_Iovlen_T; + This_Iov_Count : SOSC.Msg_Iovlen_T; Msg : Msghdr; begin |