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/sh/bits/pthreadtypes.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'nptl/sysdeps/unix/sysv/linux/sh') 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 -- cgit v1.2.1