summaryrefslogtreecommitdiff
path: root/patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-02-24 11:00:05 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-02-24 11:00:05 (GMT)
commit1906cf93f86d8d66f45f90380a8d3da25c087ee5 (patch)
tree90916c99abe1f1ec26709ee420e6c349eda4670a /patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch
parent2609573aede4ce198b3462976725b25eb1637d2e (diff)
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!". Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup. That means I'm putting backups in place in the afternoon. That also means we've lost history... :-(
Diffstat (limited to 'patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch')
-rw-r--r--patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch b/patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch
new file mode 100644
index 0000000..b52f324
--- /dev/null
+++ b/patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch
@@ -0,0 +1,33 @@
+http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/pthread/pthread.h.diff?r1=1.31&r2=1.32&cvsroot=glibc
+
+Fixes
+../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "__thread"
+../linuxthreads/sysdeps/pthread/pthread.h:141: error: `pthread_create' declared as function returning a function
+../linuxthreads/sysdeps/pthread/pthread.h:141: warning: function declaration isn't a prototype
+../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "void"
+../linuxthreads/sysdeps/pthread/pthread.h:462: error: storage class specified for parameter `type name'
+
+when compiling with gcc3.x
+
+Rediffed against glibc-2.1.3
+
+--- glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h.orig 2000-01-20 17:40:19.000000000 -0800
++++ glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h 2004-03-04 15:56:43.000000000 -0800
+@@ -138,7 +138,7 @@
+ /* Create a thread with given attributes ATTR (or default attributes
+ if ATTR is NULL), and call function START_ROUTINE with given
+ arguments ARG. */
+-extern int pthread_create __P ((pthread_t *__thread,
++extern int pthread_create __P ((pthread_t *__threadp,
+ __const pthread_attr_t *__attr,
+ void *(*__start_routine) (void *),
+ void *__arg));
+@@ -459,7 +459,7 @@
+ extern int pthread_setcanceltype __P ((int __type, int *__oldtype));
+
+ /* Cancel THREAD immediately or at the next possibility. */
+-extern int pthread_cancel __P ((pthread_t __thread));
++extern int pthread_cancel __P ((pthread_t __cancelthread));
+
+ /* Test for pending cancellation for the current thread and terminate
+ the thread as per pthread_exit(PTHREAD_CANCELED) if it has been