aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/s-oscons-tmplt.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-04-29 15:47:42 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2009-04-29 15:47:42 +0200
commit51ec70b8be4c423e38fcbc6e49add3fbc16fe5bb (patch)
treef8c5efa510fefa4a36802cbc8fcf62ab4d7580b4 /gcc/ada/s-oscons-tmplt.c
parent9e895ab50a0882df6e42fdb2995fec55258a26d6 (diff)
downloadgcc-51ec70b8be4c423e38fcbc6e49add3fbc16fe5bb.zip
gcc-51ec70b8be4c423e38fcbc6e49add3fbc16fe5bb.tar.gz
gcc-51ec70b8be4c423e38fcbc6e49add3fbc16fe5bb.tar.bz2
[multiple changes]
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. From-SVN: r146969
Diffstat (limited to 'gcc/ada/s-oscons-tmplt.c')
-rw-r--r--gcc/ada/s-oscons-tmplt.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c
index c3511b9..24555f1 100644
--- a/gcc/ada/s-oscons-tmplt.c
+++ b/gcc/ada/s-oscons-tmplt.c
@@ -1181,6 +1181,19 @@ TXT(" subtype H_Length_T is Interfaces.C." h_length_t ";")
/*
+ -- Fields of struct msghdr
+*/
+
+#if defined (__VMS) || defined (__sun__) || defined (__hpux__)
+# define msg_iovlen_t "int"
+#else
+# define msg_iovlen_t "size_t"
+#endif
+
+TXT(" subtype Msg_Iovlen_T is Interfaces.C." msg_iovlen_t ";")
+
+/*
+
----------------------------------------
-- Properties of supported interfaces --
----------------------------------------