This is/should be based on the definition of _POSIX_CLOCK_SELECTION and we get this from newlib/libc/include/sys/features.h as of commit 9a80679aae9098aa189f7ea8ce7892e2c092f3be in newlib.git. If there is a warning, then probably rsb is not getting a new enough newlib for it.
On Wed, Nov 9, 2016 at 2:10 PM, Joel Sherrill <j...@rtems.org> wrote: > Hi > > In a build sweep, I noticed that every use of clock_nanosleep() > has a warning for it not being defined. I don't seem to be able > to find the magic to turn on the prototype in time.h. Does > anyone see what needs to be done? > > ================== > #define _POSIX_C_SOURCE 200112L > > #include <time.h> > > void f(void) > { > int rc; > > rc = clock_nanosleep(); > } > ================== > > Thanks. > > --joel > > _______________________________________________ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel