about summary refs log tree commit diff
path: root/nptl/sysdeps/unix/sysv/linux/sh/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2012-02-26 17:41:17 -0500
committerUlrich Drepper <drepper@gmail.com>2012-02-26 17:41:17 -0500
commit4a3dded52708e6d9be190a968f0f09ca57539e13 (patch)
treef67735395e2b1e129760e57e090c5246acb766bc /nptl/sysdeps/unix/sysv/linux/sh/bits
parent4efeffc1d583597e4f52985b9747269e47b754e2 (diff)
downloadglibc-4a3dded52708e6d9be190a968f0f09ca57539e13.tar.gz
glibc-4a3dded52708e6d9be190a968f0f09ca57539e13.tar.xz
glibc-4a3dded52708e6d9be190a968f0f09ca57539e13.zip
Work around problem of pthread_attr_t definition with old compilers
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/sh/bits')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h b/nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
index 34b07921fd..a1ef92b5ad 100644
--- a/nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
+++ b/nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
@@ -37,11 +37,15 @@
 typedef unsigned long int pthread_t;
 
 
-typedef union __pthread_attr
+union __pthread_attr
 {
   char __size[__SIZEOF_PTHREAD_ATTR_T];
   long int __align;
-} pthread_attr_t;
+};
+#ifndef __have_pthread_attr_t
+typedef union __pthread_attr pthread_attr_t;
+# define __have_pthread_attr_t	1
+#endif
 
 
 typedef struct __pthread_internal_slist