patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch
changeset 336 4b0db42fc078
parent 335 f0d84f1d4c93
child 337 f083425c84e3
     1.1 --- a/patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch	Wed Aug 15 16:18:35 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,33 +0,0 @@
     1.4 -http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/pthread/pthread.h.diff?r1=1.31&r2=1.32&cvsroot=glibc
     1.5 -
     1.6 -Fixes 
     1.7 -../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "__thread"
     1.8 -../linuxthreads/sysdeps/pthread/pthread.h:141: error: `pthread_create' declared as function returning a function
     1.9 -../linuxthreads/sysdeps/pthread/pthread.h:141: warning: function declaration isn't a prototype
    1.10 -../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "void"
    1.11 -../linuxthreads/sysdeps/pthread/pthread.h:462: error: storage class specified for parameter `type name'
    1.12 -
    1.13 -when compiling with gcc3.x
    1.14 -
    1.15 -Rediffed against glibc-2.1.3
    1.16 -
    1.17 ---- glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h.orig	2000-01-20 17:40:19.000000000 -0800
    1.18 -+++ glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h	2004-03-04 15:56:43.000000000 -0800
    1.19 -@@ -138,7 +138,7 @@
    1.20 - /* Create a thread with given attributes ATTR (or default attributes
    1.21 -    if ATTR is NULL), and call function START_ROUTINE with given
    1.22 -    arguments ARG.  */
    1.23 --extern int pthread_create __P ((pthread_t *__thread,
    1.24 -+extern int pthread_create __P ((pthread_t *__threadp,
    1.25 - 				__const pthread_attr_t *__attr,
    1.26 - 				void *(*__start_routine) (void *),
    1.27 - 				void *__arg));
    1.28 -@@ -459,7 +459,7 @@
    1.29 - extern int pthread_setcanceltype __P ((int __type, int *__oldtype));
    1.30 - 
    1.31 - /* Cancel THREAD immediately or at the next possibility.  */
    1.32 --extern int pthread_cancel __P ((pthread_t __thread));
    1.33 -+extern int pthread_cancel __P ((pthread_t __cancelthread));
    1.34 - 
    1.35 - /* Test for pending cancellation for the current thread and terminate
    1.36 -    the thread as per pthread_exit(PTHREAD_CANCELED) if it has been