<div dir="ltr"><p dir="ltr"></p>
<p dir="ltr">On Nov 9, 2016 2:05 PM, "Gedare Bloom" <<a href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</a>> wrote:<br>
><br>
> This is/should be based on the definition of _POSIX_CLOCK_SELECTION<br>
> and we get this from newlib/libc/include/sys/<wbr>features.h as of commit<br>
> 9a80679aae9098aa189f7ea8ce7892<wbr>e2c092f3be in newlib.git. If there is a<br>
> warning, then probably rsb is not getting a new enough newlib for it.<br><br>Yep. Saw that and thought a POSIX_C_SOURCE define would trip it but it didn't.</p><p dir="ltr">We are at newlib-2.4.0.20160527-1. There is a 20160923. </p><p>Do we need to upgrade newlib?</p><p>And .. did we get resolution on my patch to upgrade binutils? <br></p><p>--joel</p><p dir="ltr"><br>
> On Wed, Nov 9, 2016 at 2:10 PM, Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>> wrote:<br>
> > Hi<br>
> ><br>
> > In a build sweep, I noticed that every use of clock_nanosleep()<br>
> > has a warning for it not being defined. I don't seem to be able<br>
> > to find the magic to turn on the prototype in time.h. Does<br>
> > anyone see what needs to be done?<br>
> ><br>
> > ==================<br>
> > #define _POSIX_C_SOURCE 200112L<br>
> ><br>
> > #include <time.h><br>
> ><br>
> > void f(void)<br>
> > {<br>
> > int rc;<br>
> ><br>
> > rc = clock_nanosleep();<br>
> > }<br>
> > ==================<br>
> ><br>
> > Thanks.<br>
> ><br>
> > --joel<br>
> ><br>
> > ______________________________<wbr>_________________<br>
> > devel mailing list<br>
> > <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
> > <a href="http://lists.rtems.org/mailman/listinfo/devel" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br></p>
</div>