Re: Prototype warning for clock_nanosleep()

2016-11-09 Thread Gedare Bloom
On Wed, Nov 9, 2016 at 3:12 PM, Joel Sherrill wrote: > On Nov 9, 2016 2:05 PM, "Gedare Bloom" wrote: >> >> 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 new

Re: Prototype warning for clock_nanosleep()

2016-11-09 Thread Gedare Bloom
On Wed, Nov 9, 2016 at 3:51 PM, Joel Sherrill wrote: > > > On Wed, Nov 9, 2016 at 2:49 PM, Gedare Bloom wrote: >> >> On Wed, Nov 9, 2016 at 3:12 PM, Joel Sherrill wrote: >> > On Nov 9, 2016 2:05 PM, "Gedare Bloom" wrote: >> >> >> >> This is/should be based on the definition of _POSIX_CLOCK_SELE

Re: Prototype warning for clock_nanosleep()

2016-11-09 Thread Joel Sherrill
On Wed, Nov 9, 2016 at 2:49 PM, Gedare Bloom wrote: > On Wed, Nov 9, 2016 at 3:12 PM, Joel Sherrill wrote: > > On Nov 9, 2016 2:05 PM, "Gedare Bloom" wrote: > >> > >> This is/should be based on the definition of _POSIX_CLOCK_SELECTION > >> and we get this from newlib/libc/include/sys/features.h

Re: Prototype warning for clock_nanosleep()

2016-11-09 Thread Joel Sherrill
On Nov 9, 2016 2:05 PM, "Gedare Bloom" wrote: > > 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 g

Re: Prototype warning for clock_nanosleep()

2016-11-09 Thread Gedare Bloom
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 a

Prototype warning for clock_nanosleep()

2016-11-09 Thread Joel Sherrill
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 void f(voi