m68k: only define pthread_attr_t if not already defined
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 27 Feb 2012 20:15:54 +0000 (21:15 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 27 Feb 2012 20:17:06 +0000 (21:17 +0100)
ChangeLog.m68k
sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h

index c84aad6..1d3e77b 100644 (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>
 
index fe6e2b5..588c928 100644 (file)
 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