Commit 7faebe46 authored by Jörg Krause's avatar Jörg Krause Committed by Christophe Massiot

uClibc may be configured without support for clock_nanosleep(). The function is

only available with uClibc if the C library is build with NPTL support (sets
__UCLIBC_HAS_THREADS_NATIVE__) and __UCLIBC_HAS_ADVANCED_REALTIME__ set.
Signed-off-by: default avatarJörg Krause <joerg.krause@embedded.rocks>
parent 9692a213
......@@ -26,7 +26,10 @@
#ifdef __APPLE__
#define POLLRDHUP 0
#else
/* uClibc may does not have clock_nanosleep() */
#elif !defined (__UCLIBC__) || \
defined (__UCLIBC__) && defined (__UCLIBC_HAS_THREADS_NATIVE__) \
&& defined (__UCLIBC_HAS_ADVANCED_REALTIME__)
#define HAVE_CLOCK_NANOSLEEP
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment