]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ARM: fix pthread_attr_t definitions.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 27 Feb 2012 15:14:04 +0000 (15:14 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 27 Feb 2012 15:14:04 +0000 (15:14 +0000)
ChangeLog.arm
sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h

index 7d23c114e68ff6c1cb8a54096569797c700521f5..982699cb241aff16f316d3a7f3802f79b75b682a 100644 (file)
@@ -1,3 +1,9 @@
+2012-02-27  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/arm/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>
 
        * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Name
index c75a506e183fe26cef7d9f43348eb8c4bfb14c08..bb186aec0687a91a3b7cb850e855eca9aeb996f0 100644 (file)
 typedef unsigned long int pthread_t;
 
 
-typedef union __pthread_attr
+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