based on a patch from Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
@@ -17,6 +17,9 @@
02111-1307 USA. */
#include <signal.h>
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+# include <pthreadP.h> /* SIGCANCEL */
+#endif
#if 0
#define __need_NULL
#include <stddef.h>
@@ -28,6 +28,9 @@
#include <string.h>
#include <sys/syscall.h>
#include <bits/kernel_sigaction.h>
#define SA_RESTORER 0x04000000
@@ -13,7 +13,10 @@
#ifdef __NR_rt_sigtimedwait
# include <signal.h>
# include <cancel.h>
-# ifdef SIGCANCEL /* defined only in NPTL's pthreadP.h */
+# ifdef __UCLIBC_HAS_THREADS_NATIVE__
+# endif
+# ifdef SIGCANCEL
# define __need_NULL
# include <stddef.h>
# include <string.h>
@@ -11,6 +11,9 @@
#if defined __USE_POSIX
#undef sigprocmask