From: Neale Ferguson Date: Tue, 27 Oct 1998 13:44:42 +0000 (+1300) Subject: ATTR_JOINABLE logic, based on (private email) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1fff601ee71b8b7212d98718b9e522d5caf2da7f;p=p5sagit%2Fp5-mst-13.2.git ATTR_JOINABLE logic, based on (private email) Subject: Some little diffs Message-ID: <36350969.DA33E7B4@mailbox.tabnsw.com.au> p4raw-id: //depot/cfgperl@2096 --- diff --git a/thread.h b/thread.h index 9e607e0..8e95b98 100644 --- a/thread.h +++ b/thread.h @@ -128,16 +128,14 @@ struct perl_thread *getTHR _((void)); # endif #endif -#ifdef PTHREADS_CREATED_JOINABLE +#if !defined(ATTR_JOINABLE) && defined(PTHREAD_CREATE_JOINABLE) # define ATTR_JOINABLE PTHREAD_CREATE_JOINABLE -#else -# ifdef PTHREAD_CREATE_UNDETACHED -# define ATTR_JOINABLE PTHREAD_CREATE_UNDETACHED -# else -# ifdef __UNDETACHED -# define ATTR_JOINABLE __UNDETACHED -# endif -# endif +#endif +#if !defined(ATTR_JOINABLE) && defined(PTHREAD_CREATE_UNDETACHED) +# define ATTR_JOINABLE PTHREAD_CREATE_UNDETACHED +#endif +#if !defined(ATTR_JOINABLE) && defined(__UNDETACHED) +# define ATTR_JOINABLE __UNDETACHED #endif #ifndef MUTEX_INIT