diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2013-11-15 12:06:25 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2013-11-15 04:06:25 -0800 |
commit | 9f13879ee894334867240f087b699232395bc36c (patch) | |
tree | f6854d8417f71282546ff4e7157a6bdbe43baad5 /gcc/ada/s-taprop-linux.adb | |
parent | d877729c89a04e57f4acdff574120f7e1dd275d0 (diff) | |
download | gcc-9f13879ee894334867240f087b699232395bc36c.zip gcc-9f13879ee894334867240f087b699232395bc36c.tar.gz gcc-9f13879ee894334867240f087b699232395bc36c.tar.bz2 |
Add and use System.Linux.time_t for time_t
PR ada/54040
* s-linux-x32.ads: New file.
* s-osprim-x32.adb: Likewise.
* s-linux.ads (time_t): New type.
* s-linux-alpha.ads (time_t): Likewise.
* s-linux-hppa.ads (time_t): Likewise.
* s-linux-mipsel.ads (time_t): Likewise.
* s-linux-sparc.ads (time_t): Likewise.
* s-osinte-linux.ads (time_t): Mark it private. Replace long
with System.Linux.time_t.
(timespec): Replace long with time_t.
* s-osinte-posix.adb (To_Timespec): Likewise.
* s-taprop-linux.adb (timeval): Replace C.long with
System.OS_Interface.time_t.
* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Replace
s-linux.ads with s-linux-x32.ads, s-osprim-posix.adb with
s-osprim-x32.adb for x32.
From-SVN: r204840
Diffstat (limited to 'gcc/ada/s-taprop-linux.adb')
-rw-r--r-- | gcc/ada/s-taprop-linux.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/s-taprop-linux.adb b/gcc/ada/s-taprop-linux.adb index 6047d31..b8accbec 100644 --- a/gcc/ada/s-taprop-linux.adb +++ b/gcc/ada/s-taprop-linux.adb @@ -627,7 +627,7 @@ package body System.Task_Primitives.Operations is function Monotonic_Clock return Duration is use Interfaces; - type timeval is array (1 .. 2) of C.long; + type timeval is array (1 .. 2) of System.OS_Interface.time_t; procedure timeval_to_duration (T : not null access timeval; |