This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
From: Ulrich Drepper <drepper@redhat.com>
Date: Mon, 26 Dec 2005 17:32:06 -0800
> The patches I checked in work fine on x86. I couldn't test x86-64
> because I experience some mysterious build problems. I think they
> existed before the set of patches got checked in. Other archs need
> adjustment of the pthread_mutex_t type definition.
This should take care of Sparc.
2005-12-26 David S. Miller <davem@sunset.davemloft.net>
* sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Add __next
field to pthread_mutex_t.
Index: sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
===================================================================
RCS file: /cvs/glibc/libc/nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h,v
retrieving revision 1.8
diff -u -r1.8 pthreadtypes.h
--- sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h 28 Sep 2004 10:33:54 -0000 1.8
+++ sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h 27 Dec 2005 06:18:42 -0000
@@ -60,7 +60,7 @@
/* Data structures for mutex handling. The structure of the attribute
type is deliberately not exposed. */
-typedef union
+typedef union __pthread_mutex_u
{
struct
{
@@ -76,7 +76,11 @@
#if __WORDSIZE != 64
unsigned int __nusers;
#endif
- int __spins;
+ union
+ {
+ int __spins;
+ union __pthread_mutex_u *__next;
+ };
} __data;
char __size[__SIZEOF_PTHREAD_MUTEX_T];
long int __align;
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |