This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR ada/54040: [x32] Incorrect timeval and timespec
- From: Arnaud Charlet <charlet at adacore dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Eric Botcazou <ebotcazou at adacore dot com>
- Date: Fri, 15 Nov 2013 12:38:15 +0100
- Subject: Re: [PATCH] PR ada/54040: [x32] Incorrect timeval and timespec
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOobLZz4rc56qaGBqJBw9Gjgis7C-4e1DvQS1n5ce_yVhQ at mail dot gmail dot com> <20131114141639 dot GA5675 at adacore dot com> <CAMe9rOpk3A4JZCbdJFBBbncU3Jh7LueN9nrejvSy5xKxpdvr7g at mail dot gmail dot com> <CAMe9rOpAXacQAxckGV1eoSqV4Pwih6da1iGEq=b9TpWe2OB4jw at mail dot gmail dot com> <20131115101126 dot GA11383 at adacore dot com> <CAMe9rOobDA0tByri=q0tF7sw5OBPu_McmF8Tc9RcC=waqh_2nQ at mail dot gmail dot com> <20131115105054 dot GC15490 at adacore dot com> <CAMe9rOq=0jJRC9Ps6aHjKihfXd3XKHmGX7TY0HVTpESd7m0H6Q at mail dot gmail dot com> <20131115111843 dot GA31367 at adacore dot com> <CAMe9rOrZpt5LCP_1dDiOYDi2phbfEQMBYtKaUZhzireTt9vGHg at mail dot gmail dot com>
> > 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.