source: clfs-sysroot/patches/glibc-2.6.1-RTLD_SINGLE_THREAD_P-1.patch@ fc8fc33

Last change on this file since fc8fc33 was 93fcbff, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Updated Glibc to 2.6.1.

  • Property mode set to 100644
File size: 822 bytes
RevLine 
[00520f6]1Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
2Date: 07-02-2007
3Initial Package Version: 2.6
4Origin: http://sourceware.org/ml/libc-ports/2007-05/msg00051.html
5Upstream Status: Unknown
6Description: Defines RTLD_SINGLE_THREAD_P for arm.
7
8diff -Naur glibc-2.6.orig/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h glibc-2.6/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
9--- glibc-2.6.orig/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-07-02 17:39:22.000000000 -0400
10+++ glibc-2.6/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-07-02 17:39:36.000000000 -0400
11@@ -126,3 +126,9 @@
12 # define NO_CANCELLATION 1
13
14 #endif
15+
16+#ifndef __ASSEMBLER__
17+# define RTLD_SINGLE_THREAD_P \
18+ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
19+ header.multiple_threads) == 0, 1)
20+#endif
Note: See TracBrowser for help on using the repository browser.