MIPS: fix pthread_attr_t definitions.

This commit is contained in:
Joseph Myers 2012-02-27 15:14:41 +00:00
parent e7c0dc24ea
commit 7bb9ccad9c
3 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2012-02-27 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/bits/siginfo.h (pthread_attr_t):
Change union tag to pthread_attr_t. Only define typedef if not
already defined.
* sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
(pthread_attr_t): Change union tag to pthread_attr_t. Only define
typedef if not already defined.
2012-02-26 Joseph Myers <joseph@codesourcery.com> 2012-02-26 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Don't name * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Don't name

View File

@ -274,7 +274,10 @@ enum
# endif # endif
/* Forward declaration. */ /* Forward declaration. */
typedef union __pthread_attr pthread_attr_t; # ifndef __have_pthread_attr_t
typedef union pthread_attr_t pthread_attr_t;
# define __have_pthread_attr_t 1
# endif
typedef struct sigevent typedef struct sigevent
{ {

View File

@ -50,11 +50,15 @@
typedef unsigned long int pthread_t; typedef unsigned long int pthread_t;
typedef union __pthread_attr union pthread_attr_t
{ {
char __size[__SIZEOF_PTHREAD_ATTR_T]; char __size[__SIZEOF_PTHREAD_ATTR_T];
long int __align; long int __align;
} pthread_attr_t; };
#ifndef __have_pthread_attr_t
typedef union pthread_attr_t pthread_attr_t;
# define __have_pthread_attr_t 1
#endif
#if _MIPS_SIM == _ABI64 #if _MIPS_SIM == _ABI64