[Buildroot] [PATCH] package/canfestival: fix build with musl

Brendan Heading brendanheading at gmail.com
Sat Aug 22 22:35:00 UTC 2015


>> I was going to take this up with the developers as I can't see a good
>> reason why the behaviour is different for uclibc and non-uclibc
>> environments, and in any case CLOCK_REALTIME is almost certainly not
>> what they want. But I haven't had a spare moment to write a test case
>> to prove that the timer code used in the non-uclibc version would work
>> just as well under uclibc.
>
> That sounds really weird, indeed... :-(

It feels like they ran into some kind of issue with uclibc and hacked
together a fix.

And IME naive coders often make the mistake of using the wrong CLOCK_*
parameters when doing POSIX time related things ..

> OK, I'll try to revisit this later. Thanks for the heads up.

I thought about submitting a patch with another #ifdef __UCLIBC__
around the function declaration - not ideal, but it at least matches
what the upstream were trying to do. But I wasn't sure if such an
approach would pass muster here ?

Brendan


More information about the buildroot mailing list