Define _pthread_descr only if necessary.
[kopensolaris-gnu/glibc.git] / linuxthreads / sysdeps / pthread / bits / pthreadtypes.h
index 04dbe35..fbb10ed 100644 (file)
@@ -29,8 +29,11 @@ struct _pthread_fastlock
   int __spinlock;               /* For compare-and-swap emulation */
 };
 
+#ifndef _PTHREAD_DESCR_DEFINED
 /* Thread descriptors */
 typedef struct _pthread_descr_struct *_pthread_descr;
+# define _PTHREAD_DESCR_DEFINED
+#endif
 
 
 /* Attributes for threads.  */