diff mbox

PR ada/54040: [x32] Incorrect timeval and timespec

Message ID 20131115113815.GB7411@adacore.com
State New
Headers show

Commit Message

Arnaud Charlet Nov. 15, 2013, 11:38 a.m. UTC
> > Looks better now, but please do not add a dependency on System.Linux in
> > s-taprop-linux.adb, and instead use:
> >
> >     type timeval is array (1 .. 2) of System.OS_Interface.time_t;
> >
> > Arno
> 
> It doesn't work:
> 
> s-taprop.adb:630:60: "time_t" is not a visible entity of "OS_Interface"

Right, time_t is private in s-osinte-linux.ads, so you need to add:


To make it visible.
diff mbox

Patch

--- s-osinte-linux.ads  (revision 298854)
+++ s-osinte-linux.ads  (working copy)
@@ -218,6 +218,7 @@ 
    ----------

    type timespec is private;
+   type time_t is private;

    function To_Duration (TS : timespec) return Duration;
    pragma Inline (To_Duration);