[git commit future] include pthreadP.h for SIGCANCEL

Peter S. Mazinger ps.m at gmx.net
Thu May 12 10:26:41 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=aed47156856366c6aaf29a54e68fed39733f6bce
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

based on a patch from Kevin Cernekee <cernekee at gmail.com>

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/signal/sigfillset.c                      |    3 +++
 libc/sysdeps/linux/c6x/sigaction.c            |    3 +++
 libc/sysdeps/linux/common/__rt_sigtimedwait.c |    5 ++++-
 libc/sysdeps/linux/common/sigprocmask.c       |    3 +++
 4 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/libc/signal/sigfillset.c b/libc/signal/sigfillset.c
index ef60f10..4e8af2d 100644
--- a/libc/signal/sigfillset.c
+++ b/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>
diff --git a/libc/sysdeps/linux/c6x/sigaction.c b/libc/sysdeps/linux/c6x/sigaction.c
index 7e64ce2..4bd99d8 100644
--- a/libc/sysdeps/linux/c6x/sigaction.c
+++ b/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
 
diff --git a/libc/sysdeps/linux/common/__rt_sigtimedwait.c b/libc/sysdeps/linux/common/__rt_sigtimedwait.c
index 962ccb0..b45f5df 100644
--- a/libc/sysdeps/linux/common/__rt_sigtimedwait.c
+++ b/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>
diff --git a/libc/sysdeps/linux/common/sigprocmask.c b/libc/sysdeps/linux/common/sigprocmask.c
index 6230033..6eaf5fb 100644
--- a/libc/sysdeps/linux/common/sigprocmask.c
+++ b/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
 
-- 
1.7.3.4



More information about the uClibc-cvs mailing list