patches/glibc/ports-2.6.1/100-ARM-NPTL.patch
author Titus von Boxberg <titus@v9g.de>
Tue Nov 06 17:02:06 2012 +0100 (2012-11-06)
changeset 3103 a8bf927f6e37
parent 365 ba634892cc18
permissions -rw-r--r--
Makefile.in: Use only standard options compatible with BSD install

Don't use options specific to FSF's coreutils install.

Signed-off-by: Titus von Boxberg <titus@v9g.de>
Message-Id: <51587db99510a9ec08f8.1352226968@tschetwerikow.boxberg.lan>
Patchwork-Id: 197532
yann@365
     1
diff -durN glibc-2.6.1.orig/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h glibc-2.6.1/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h
yann@367
     2
--- glibc-2.6.1.orig/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h	2005-11-16 20:22:59.000000000 +0100
yann@367
     3
+++ glibc-2.6.1/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h	2007-09-06 13:53:16.000000000 +0200
yann@365
     4
@@ -126,3 +126,9 @@
yann@365
     5
 # define NO_CANCELLATION 1
yann@365
     6
 
yann@365
     7
 #endif
yann@365
     8
+
yann@365
     9
+#ifndef __ASSEMBLER__
yann@365
    10
+# define RTLD_SINGLE_THREAD_P \
yann@365
    11
+  __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
yann@365
    12
+                   header.multiple_threads) == 0, 1)
yann@365
    13
+#endif