summaryrefslogtreecommitdiff
path: root/libpthread/nptl/pthread_cancel.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2011-01-04 14:16:50 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2011-01-04 14:16:50 +0100
commit488e56e0d9fca517e62a96d2eae5e1ef9fdb38bc (patch)
tree0e9faf8afd4c50a05223e1e710eeda776eb829b3 /libpthread/nptl/pthread_cancel.c
parent4ac7ad3543dd6d7780e71af80fa5c45414451719 (diff)
nptl: get rid of preprocessor warning when __ASSUME_TGKILL is not defined
A sample of the warning reported while building for ARM that has not __ASSUME_TGKILL defined. libpthread/nptl/sysdeps/unix/sysv/linux/raise.c: In function 'raise': libpthread/nptl/sysdeps/unix/sysv/linux/raise.c:33:5: warning: "__ASSUME_TGKILL" is not defined Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libpthread/nptl/pthread_cancel.c')
-rw-r--r--libpthread/nptl/pthread_cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/nptl/pthread_cancel.c b/libpthread/nptl/pthread_cancel.c
index 4a958bcde..163fa0243 100644
--- a/libpthread/nptl/pthread_cancel.c
+++ b/libpthread/nptl/pthread_cancel.c
@@ -76,7 +76,7 @@ pthread_cancel (
a signal handler. But this is no allowed, pthread_cancel
is not guaranteed to be async-safe. */
int val;
-#if __ASSUME_TGKILL
+#if defined(__ASSUME_TGKILL) && __ASSUME_TGKILL
val = INTERNAL_SYSCALL (tgkill, err, 3,
THREAD_GETMEM (THREAD_SELF, pid), pd->tid,
SIGCANCEL);