> > 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: --- 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); To make it visible.