From 4a3dded52708e6d9be190a968f0f09ca57539e13 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 26 Feb 2012 17:41:17 -0500 Subject: Work around problem of pthread_attr_t definition with old compilers --- nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'nptl/sysdeps/unix/sysv/linux/s390/bits') diff --git a/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h b/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h index d87a635dc4..c64b14f7cd 100644 --- a/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h +++ b/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h @@ -48,11 +48,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 #if __WORDSIZE == 64 -- cgit 1.4.1