m68k: only define pthread_attr_t if not already defined

This commit is contained in:
Andreas Schwab 2012-02-27 21:15:54 +01:00
parent bf8becc54b
commit 175763ab68
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,8 @@
2012-02-27 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
(pthread_attr_t): Fix name of union.
(pthread_attr_t): Fix name of union. Only define if not already
defined.
2012-02-26 Andreas Schwab <schwab@linux-m68k.org>

View File

@ -38,11 +38,15 @@
typedef unsigned long int pthread_t;
typedef union pthread_attr_t
union pthread_attr_t
{
char __size[__SIZEOF_PTHREAD_ATTR_T];
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
typedef struct __pthread_internal_slist