[Buildroot] [PATCH v2 1/1] package/canfestival: fix musl compilation

Jörg Krause joerg.krause at embedded.rocks
Tue Aug 18 05:37:23 UTC 2015


On Mo, 2015-08-17 at 22:51 +0100, Brendan Heading wrote:
> Fixes: http://autobuild.buildroot.net/results/75a/75aa6e7e4f3dcd74e4b
> 65496060328ec7bd0e747/
> 
> ANSI signal handlers take an int parameter, not sigval_t.

This is true for uClibc, but for other libc timer_notify is asigned to
the `sigev_notify_function` function which has an `union sigval` as
argument [1].

Snipped from the source code of timers_unix.c:

#if defined(__UCLIBC__)
	[..]
	signal(SIGALRM, timer_notify);
#else
	[..]
	sigev.sigev_notify_function = timer_notify;
	[..]
#endif
}

[1] http://man7.org/linux/man-pages/man7/sigevent.7.html

Best regards
Jörg Krause
> 


More information about the buildroot mailing list