This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> > 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]