board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / multicat / 0003-Fix-have-clock-nanosleep-with-uclibc.patch
blob108fb0b85b8f1b6425aa99f2f6552e0ab8cb2fce
1 uClibc may be configured without support for clock_nanosleep(). The function is
2 only available with uClibc if the C library is build with NPTL support (sets
3 __UCLIBC_HAS_THREADS_NATIVE__) and __UCLIBC_HAS_ADVANCED_REALTIME__ set.
5 Upstream status: Pending
6 https://mailman.videolan.org/pipermail/multicat-devel/2016-March/000129.html
8 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
10 diff -purN multicat-2.1.orig/util.h multicat-2.1/util.h
11 --- multicat-2.1.orig/util.h 2015-07-15 22:47:39.000000000 +0200
12 +++ multicat-2.1/util.h 2016-03-20 18:13:51.899780405 +0100
13 @@ -26,7 +26,10 @@
15 #ifdef __APPLE__
16 #define POLLRDHUP 0
17 -#else
18 +/* uClibc may not have clock_nanosleep() available */
19 +#elif !defined (__UCLIBC__) || \
20 + defined (__UCLIBC__) && defined (__UCLIBC_HAS_THREADS_NATIVE__) \
21 + && defined (__UCLIBC_HAS_ADVANCED_REALTIME__)
22 #define HAVE_CLOCK_NANOSLEEP
23 #endif