[Buildroot] [RFC v1] directfb: fix musl compile
Peter Korsgaard
peter at korsgaard.com
Wed Nov 18 21:57:10 UTC 2015
>>>>> "Peter" == Peter Seiderer <ps.report at gmx.net> writes:
Hi,
> - use 'union sigval' instead of sigval_t (same as suggested
> for canfestival by Yann E. MORIN, see [2])
> - delete DIRECT_RECURSIVE_MUTEX_INITIALIZER define (which uses unknown
> PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
> - use DIRECT_MUTEX_INITIALIZER instead for trace.c (no recursive
> mutex needed)
> - use pthread_once and direct_recursive_mutex_init instead for
> directfb.c
> Fixes [1]:
> system.c:114:6: error: unknown type name 'sigval_t'
> and
> ../lib/direct/os/linux/glibc/mutex.h:49:53: error: ‘PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP’ undeclared (first use in this function)
> [1] http://autobuild.buildroot.net/results/548/548bf7b800a946e97135c0ba66363f388e517d6f
> [2] https://patchwork.ozlabs.org/patch/509731
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
> ---
> RFC: not yet runtime tested
Thanks, but I don't feel confident applying such a patch, especially as
upstream seems dead so we cannot get their feedback on it / will have to
carry it along ourselves - So I've instead marked directfb as !musl.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list