summaryrefslogtreecommitdiff
path: root/gcc/ada/s-osinte-darwin.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-09 13:11:10 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-09 13:11:10 +0000
commit7cab648ccbe25a50c551ce67f44c7312f9edebf9 (patch)
treee094eb8cc06e7ff52241dd85c1d764ccfe75cb47 /gcc/ada/s-osinte-darwin.adb
parentf41ce91a35c89a2df3284c3b665fbecbc13da3cf (diff)
downloadgcc-7cab648ccbe25a50c551ce67f44c7312f9edebf9.tar.gz
2009-04-09 Nicolas Setton <setton@adacore.com>
* s-osinte-darwin.ads: Fix wrong binding to struc timeval. * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of struct_timeval. 2009-04-09 Bob Duff <duff@adacore.com> * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in internally-generated nodes related to select statements to avoid confusing the debugger. 2009-04-09 Pascal Obry <obry@adacore.com> * make.adb: Ensure that all linker arguments are duplicated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145838 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-osinte-darwin.adb')
-rw-r--r--gcc/ada/s-osinte-darwin.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/s-osinte-darwin.adb b/gcc/ada/s-osinte-darwin.adb
index c06228e2ca2..40a125c747f 100644
--- a/gcc/ada/s-osinte-darwin.adb
+++ b/gcc/ada/s-osinte-darwin.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1999-2006 Free Software Foundation, Inc. --
+-- Copyright (C) 1999-2008, Free Software Foundation, Inc. --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -95,11 +95,11 @@ package body System.OS_Interface is
----------------
function To_Timeval (D : Duration) return struct_timeval is
- S : int32_t;
+ S : time_t;
F : Duration;
begin
- S := int32_t (D);
+ S := time_t (D);
F := D - Duration (S);
-- If F has negative value due to a round-up, adjust for positive F