patches/glibc/linuxthreads-2.1.3/glibc-2.1.3-allow-gcc3-pthread.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jul 28 21:34:41 2007 +0000 (2007-07-28)
changeset 301 2be7232a73ac
permissions -rw-r--r--
Bump version to 0.2.2.
     1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/pthread/pthread.h.diff?r1=1.31&r2=1.32&cvsroot=glibc
     2 
     3 Fixes 
     4 ../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "__thread"
     5 ../linuxthreads/sysdeps/pthread/pthread.h:141: error: `pthread_create' declared as function returning a function
     6 ../linuxthreads/sysdeps/pthread/pthread.h:141: warning: function declaration isn't a prototype
     7 ../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "void"
     8 ../linuxthreads/sysdeps/pthread/pthread.h:462: error: storage class specified for parameter `type name'
     9 
    10 when compiling with gcc3.x
    11 
    12 Rediffed against glibc-2.1.3
    13 
    14 --- glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h.orig	2000-01-20 17:40:19.000000000 -0800
    15 +++ glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h	2004-03-04 15:56:43.000000000 -0800
    16 @@ -138,7 +138,7 @@
    17  /* Create a thread with given attributes ATTR (or default attributes
    18     if ATTR is NULL), and call function START_ROUTINE with given
    19     arguments ARG.  */
    20 -extern int pthread_create __P ((pthread_t *__thread,
    21 +extern int pthread_create __P ((pthread_t *__threadp,
    22  				__const pthread_attr_t *__attr,
    23  				void *(*__start_routine) (void *),
    24  				void *__arg));
    25 @@ -459,7 +459,7 @@
    26  extern int pthread_setcanceltype __P ((int __type, int *__oldtype));
    27  
    28  /* Cancel THREAD immediately or at the next possibility.  */
    29 -extern int pthread_cancel __P ((pthread_t __thread));
    30 +extern int pthread_cancel __P ((pthread_t __cancelthread));
    31  
    32  /* Test for pending cancellation for the current thread and terminate
    33     the thread as per pthread_exit(PTHREAD_CANCELED) if it has been