Browse Source

include pthreadP.h for SIGCANCEL

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>
Peter S. Mazinger 14 years ago
parent
commit
93002a29bc

+ 3 - 0
libc/signal/sigfillset.c

@@ -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>

+ 3 - 0
libc/sysdeps/linux/c6x/sigaction.c

@@ -28,6 +28,9 @@
 #include <string.h>
 #include <sys/syscall.h>
 #include <bits/kernel_sigaction.h>
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+# include <pthreadP.h>	/* SIGCANCEL */
+#endif
 
 #define SA_RESTORER	0x04000000
 

+ 4 - 1
libc/sysdeps/linux/common/__rt_sigtimedwait.c

@@ -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__
+#  include <pthreadP.h>	/* SIGCANCEL */
+# endif
+# ifdef SIGCANCEL
 #  define __need_NULL
 #  include <stddef.h>
 #  include <string.h>

+ 3 - 0
libc/sysdeps/linux/common/sigprocmask.c

@@ -11,6 +11,9 @@
 
 #if defined __USE_POSIX
 #include <signal.h>
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+# include <pthreadP.h>	/* SIGCANCEL */
+#endif
 
 #undef sigprocmask