Define _pthread_descr only if necessary.
authordrepper <drepper>
Thu, 15 Apr 1999 13:52:26 +0000 (13:52 +0000)
committerdrepper <drepper>
Thu, 15 Apr 1999 13:52:26 +0000 (13:52 +0000)
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.  */