ia64: pthread_attr_t type mangling
authorMike Frysinger <vapier@gentoo.org>
Tue, 17 Apr 2012 02:44:55 +0000 (22:44 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 03:10:09 +0000 (23:10 -0400)
This applies the same updates that already exist in the main tree for
making the pthread_attr_t union more standards compliant.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ChangeLog.ia64
sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h

index 111cb5b456d165511a0fa3fffa0c57ab501ec468..fea858230b278e98de913b7dce60343ab042056b 100644 (file)
@@ -1,3 +1,9 @@
+2012-04-27  Mike Frysinger  <vapier@gentoo.org>
+
+       * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
+       (pthread_attr_t): Change union tag to pthread_attr_t.  Only define
+       typedef if not already defined.
+
 2012-04-27  Mike Frysinger  <vapier@gentoo.org>
 
        * sysdeps/unix/sysv/linux/ia64/bits/mman.h (MAP_STACK): Define.
index 4f87f8b61edbcfcce0ccb1445a56b3e5b339c633..5b30713069a439d7b23d734f4586b0605a8da1a7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
 
 typedef unsigned long int pthread_t;
 
 
-typedef union
+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_list