I'm afraid this is the only way. I originally tried the same grep approach as for the clock_adjtime, etc. However it is too weak. On some targets clock_nanosleep is defined conditionally in #if preprocessor directives. There is no way to detect that with grep.
I'm trying to get linuxptp into Buildroot so that it compiles on all 49 targets. Regards Petr On 15/05/17 23:29, Richard Cochran wrote: > On Mon, May 15, 2017 at 10:17:54AM +0200, Petr Kulhavy wrote: >> On some platforms compilation issues due to clock_nanosleep were occuring. >> The >> simple test for __uClinux__ was not sufficient. >> >> Implement full detection of clock_nanosleep in incdefs.h by compiling a >> short C >> file. incdefs.sh now sets a new HAVE_CLOCK_NANOSLEEP literal. missing.h is >> changed accordingly. > No, no, no. > > We are not going to start compiling fragments like autotools. That > way is obsolete madness. There has got to be a better way. > > What problem are you trying to solve? Your uClinux actually does > offer clock_nanosleep? > > Thanks, > Richard ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel