aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@codesourcery.com>2006-10-31 17:39:02 +0000
committerDaniel Jacobowitz <dan@codesourcery.com>2006-10-31 17:39:02 +0000
commit80d6637fd2862a4eef1a581a2ffbb75cb2de8398 (patch)
treec8afdc2ccc8806ac880d57edcbee7db7563bb58b /sysdeps
parentc1d7a56c38233b3ea34a5cb1f09be292446bb369 (diff)
downloadglibc-80d6637fd2862a4eef1a581a2ffbb75cb2de8398.tar.xz
glibc-80d6637fd2862a4eef1a581a2ffbb75cb2de8398.zip
* sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h
(RTLD_SINGLE_THREAD_P): Define.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h b/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h
index aa1cfea728..73912d5174 100644
--- a/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h
+++ b/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h
@@ -151,3 +151,9 @@ extern int __local_multiple_threads attribute_hidden;
# define NO_CANCELLATION 1
#endif
+
+#ifndef __ASSEMBLER__
+# define RTLD_SINGLE_THREAD_P \
+ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
+ header.multiple_threads) == 0, 1)
+#endif