package/wavemon: add upstream patch to fix musl/uclibc build issue
authorJörg Krause <joerg.krause@embedded.rocks>
Tue, 22 Jan 2019 08:01:05 +0000 (09:01 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 22 Jan 2019 13:45:31 +0000 (14:45 +0100)
commit679b41ffb80962e85d64868d87ac8f5d5d903b49
treebed1280ef574dd9d06879b6e78395437abab9344
parent7d0c58ea5b1aed6ed578e120120322560972077f
package/wavemon: add upstream patch to fix musl/uclibc build issue

In version 0.9.0 wavemon uses the GLIBC-specific extension `on_exit()`
which is not available in musl and uClibc.

According to the Linux kernel man page [1]: "Portable application should
avoid this function, and use the standard atexit(3) instead."

Add patch from upstream which is fixing this issue by dropping
`on_exit()` and using the standard `atexit()` instead. Note, that the commit
message of the upstream patch was changed to add some useful information.

[1] http://man7.org/linux/man-pages/man3/on_exit.3.html

Backported from: f6e20c9c6e9b50963caaf5483248d329473a6815

Fixes:
http://autobuild.buildroot.net/results/ae54441c65fe9a1bdcf743aa7f6a208e5545ca29
http://autobuild.buildroot.net/results/40fd66e6a351a1acd537ade715ab3e993eddb1c1

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/wavemon/0001-Drop-on_exit-use-standard-atexit-instead.patch [new file with mode: 0644]