[git commit branch/0.9.33] include pthreadP.h for SIGCANCEL
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Thu Feb 23 19:52:01 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=985480d4dd3f77a1f510c948a905604c294b2d2a
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.33
based on a patch from Kevin Cernekee <cernekee at gmail.com>
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
libc/signal/sigfillset.c | 3 +++
libc/sysdeps/linux/c6x/sigaction.c | 3 +++
libc/sysdeps/linux/common/__rt_sigtimedwait.c | 1 +
libc/sysdeps/linux/common/sigprocmask.c | 3 +++
4 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/libc/signal/sigfillset.c b/libc/signal/sigfillset.c
index 951e76b..bebd5a6 100644
--- a/libc/signal/sigfillset.c
+++ b/libc/signal/sigfillset.c
@@ -19,6 +19,9 @@
#include <errno.h>
#include <signal.h>
#include <string.h>
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+# include <pthreadP.h> /* SIGCANCEL */
+#endif
/* Set all signals in SET. */
diff --git a/libc/sysdeps/linux/c6x/sigaction.c b/libc/sysdeps/linux/c6x/sigaction.c
index c65a85d..ed90f05 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 26860d2..d9f3260 100644
--- a/libc/sysdeps/linux/common/__rt_sigtimedwait.c
+++ b/libc/sysdeps/linux/common/__rt_sigtimedwait.c
@@ -16,6 +16,7 @@
# ifdef __UCLIBC_HAS_THREADS_NATIVE__
# include <sysdep-cancel.h>
+# include <pthreadP.h> /* SIGCANCEL */
static int do_sigtimedwait(const sigset_t *set, siginfo_t *info,
const struct timespec *timeout)
diff --git a/libc/sysdeps/linux/common/sigprocmask.c b/libc/sysdeps/linux/common/sigprocmask.c
index 011d7b3..bc3e64d 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
More information about the uClibc-cvs
mailing list