diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-15 12:06:25 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-15 12:06:25 +0000 |
commit | e3a1f6b50495473f677f413d8740808a3fde5a9a (patch) | |
tree | f6854d8417f71282546ff4e7157a6bdbe43baad5 /gcc/ada/s-osinte-linux.ads | |
parent | 16b0db65fa3f292beb93e4916a8aab52e0ab95f5 (diff) | |
download | gcc-e3a1f6b50495473f677f413d8740808a3fde5a9a.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204840 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-osinte-linux.ads')
-rw-r--r-- | gcc/ada/s-osinte-linux.ads | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/s-osinte-linux.ads b/gcc/ada/s-osinte-linux.ads index a99c4e53f93..6eb0b88f561 100644 --- a/gcc/ada/s-osinte-linux.ads +++ b/gcc/ada/s-osinte-linux.ads @@ -218,6 +218,7 @@ package System.OS_Interface is ---------- type timespec is private; + type time_t is private; function To_Duration (TS : timespec) return Duration; pragma Inline (To_Duration); @@ -596,11 +597,11 @@ private type pid_t is new int; - type time_t is new long; + type time_t is new System.Linux.time_t; type timespec is record tv_sec : time_t; - tv_nsec : long; + tv_nsec : time_t; end record; pragma Convention (C, timespec); |