yann@1: http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/linuxthreads/sysdeps/pthread/pthread.h.diff?r1=1.31&r2=1.32&cvsroot=glibc yann@1: yann@1: Fixes yann@1: ../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "__thread" yann@1: ../linuxthreads/sysdeps/pthread/pthread.h:141: error: `pthread_create' declared as function returning a function yann@1: ../linuxthreads/sysdeps/pthread/pthread.h:141: warning: function declaration isn't a prototype yann@1: ../linuxthreads/sysdeps/pthread/pthread.h:141: error: parse error before "void" yann@1: ../linuxthreads/sysdeps/pthread/pthread.h:462: error: storage class specified for parameter `type name' yann@1: yann@1: when compiling with gcc3.x yann@1: yann@1: Rediffed against glibc-2.1.3 yann@1: yann@1: --- glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h.orig 2000-01-20 17:40:19.000000000 -0800 yann@1: +++ glibc-2.1.3/linuxthreads/sysdeps/pthread/pthread.h 2004-03-04 15:56:43.000000000 -0800 yann@1: @@ -138,7 +138,7 @@ yann@1: /* Create a thread with given attributes ATTR (or default attributes yann@1: if ATTR is NULL), and call function START_ROUTINE with given yann@1: arguments ARG. */ yann@1: -extern int pthread_create __P ((pthread_t *__thread, yann@1: +extern int pthread_create __P ((pthread_t *__threadp, yann@1: __const pthread_attr_t *__attr, yann@1: void *(*__start_routine) (void *), yann@1: void *__arg)); yann@1: @@ -459,7 +459,7 @@ yann@1: extern int pthread_setcanceltype __P ((int __type, int *__oldtype)); yann@1: yann@1: /* Cancel THREAD immediately or at the next possibility. */ yann@1: -extern int pthread_cancel __P ((pthread_t __thread)); yann@1: +extern int pthread_cancel __P ((pthread_t __cancelthread)); yann@1: yann@1: /* Test for pending cancellation for the current thread and terminate yann@1: the thread as per pthread_exit(PTHREAD_CANCELED) if it has been