package/multicat: fix HAVE_CLOCK_NANOSLEEP with uClibc
authorJörg Krause <joerg.krause@embedded.rocks>
Sun, 20 Mar 2016 17:55:25 +0000 (18:55 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 20 Mar 2016 20:39:39 +0000 (21:39 +0100)
commit46271ffa9c4f01d9886142ae27a9f533d3a7e3ef
tree41ffe3f766e68b71848028c3bf2a7d7502b4ab24
parent36acf85340669a74c38ac7c923b739860d3defd4
package/multicat: fix HAVE_CLOCK_NANOSLEEP with uClibc

multicat uses clock_nanosleep() conditionally if HAVE_CLOCK_NANOSLEEP is
defined. Unfortunatly, multicat does not use autoconf to check if
clock_nanosleep() is really available, but defines it if __APPLE__ is not
defined.

With uClibc clock_nanosleep() is not available if the C library is configured
without NPTL support (sets __UCLIBC_HAS_THREADS_NATIVE__) or
__UCLIBC_HAS_ADVANCED_REALTIME__ is not set.

Fixes:
http://autobuild.buildroot.net/results/84f/84f8302ee94e6e6849f6b26cb697c2f9986bafe5/
http://autobuild.buildroot.net/results/9e0/9e07a98e87755c992254295c46edb0dace967a21/
http://autobuild.buildroot.net/results/4b0/4b07d276d7c09f2fc2d63c8c37c92519cfe36dbc/
http://autobuild.buildroot.net/results/84f/84f8302ee94e6e6849f6b26cb697c2f9986bafe5/
and many more.

Upstream status: Pending
https://mailman.videolan.org/pipermail/multicat-devel/2016-March/000129.html

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/multicat/0003-Fix-have-clock-nanosleep-with-uclibc.patch [new file with mode: 0644]