From 4f64abad80d072773ac390c9a93470dd57da4c31 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Fri, 10 Apr 2009 11:54:58 +0200 Subject: [multiple changes] 2009-04-10 Robert Dewar * make.adb: Add comment. Minor reformatting 2009-04-10 Nicolas Setton * s-osprim-darwin.adb: New file. * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec. 2009-04-10 Thomas Quinot * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set From-SVN: r145880 --- gcc/ada/g-socket.ads | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/ada/g-socket.ads') diff --git a/gcc/ada/g-socket.ads b/gcc/ada/g-socket.ads index eab3c301c9e..b730065cc69 100644 --- a/gcc/ada/g-socket.ads +++ b/gcc/ada/g-socket.ads @@ -1096,6 +1096,9 @@ private type Fd_Set is new System.Storage_Elements.Storage_Array (1 .. SOSC.SIZEOF_fd_set); for Fd_Set'Alignment use Interfaces.C.long'Alignment; + -- Set conservative alignment so that our Fd_Sets are always adequately + -- aligned for the underlying data type (which is implementation defined + -- and may be an array of C long integers). type Fd_Set_Access is access all Fd_Set; pragma Convention (C, Fd_Set_Access); -- cgit v1.2.1