[patch] alpha nptl fix

Richard Henderson rth@twiddle.net
Tue Jan 10 00:37:00 GMT 2006


The following appears to be needed after the recent changes to
this file.


r~


2006-01-09  Richard Henderson  <rth@redhat.com>

	* sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t):
	Name __data structure; use this for __next and __prev.

Index: nptl/sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
===================================================================
RCS file: /cvs/glibc/libc/nptl/sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h,v
retrieving revision 1.10
diff -u -p -d -r1.10 pthreadtypes.h
--- nptl/sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h	27 Dec 2005 15:08:35 -0000	1.10
+++ nptl/sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h	9 Jan 2006 23:06:00 -0000
@@ -47,7 +47,7 @@ typedef union
    type is deliberately not exposed.  */
 typedef union __pthread_mutex_u
 {
-  struct
+  struct __pthread_mutex_s
   {
     int __lock;
     unsigned int __count;
@@ -57,8 +57,8 @@ typedef union __pthread_mutex_u
        binary compatibility.  */
     int __kind;
     int __spins;
-    union __pthread_mutex_u *__next;
-    union __pthread_mutex_u *__prev;
+    struct __pthread_mutex_s *__next;
+    struct __pthread_mutex_s *__prev;
 #define __PTHREAD_MUTEX_HAVE_PREV	1
   } __data;
   char __size[__SIZEOF_PTHREAD_MUTEX_T];



More information about the Libc-hacker mailing list