package/canfestival: fix musl compilation
PATCH 1/1 package/canfestival: fix musl compilation
ANSI signal handlers take an int parameter, not sigval_t.
Upstream-status: pending
Signed-off-by Brendan Heading <[email protected]>
--- .../canfestival/0003-fix-musl-compilation.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/canfestival/0003-fix-musl-compilation.patch
package/canfestival/0003-fix-musl-compilation.patch new file +22 -0
@@ -0,0 +1,22 @@ +# HG changeset patch +# User Brendan Heading <[email protected]> +# Date 1439845818 -3600 +# Mon Aug 17 22:10:18 2015 +0100 +# Node ID 7d62beec4f813074ba250231762f4b84395cc354 +# Parent 8bfe0ac00cdb4d473664fcbf1228a0f6a42eee15 +Fix MUSL compilation issue + +signal handler parameter fixed to be int instead of sigval_t. + +diff -r 8bfe0ac00cdb -r 7d62beec4f81 drivers/timers_unix/timers_unix.c +--- a/drivers/timers_unix/timers_unix.c Mon Aug 03 18:01:58 2015 +0200 ++++ b/drivers/timers_unix/timers_unix.c Mon Aug 17 22:10:18 2015 +0100 +@@ -33,7 +33,7 @@ + } + } + +-void timer_notify(sigval_t val) ++void timer_notify(int val) + { + if(gettimeofday(&last_sig,NULL)) { + perror("gettimeofday()");
Signature · 1 line
2.4.3