summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorNeale Ferguson <neale@VMA.TABNSW.COM.AU>1998-10-28 02:44:42 +1300
committerJarkko Hietaniemi <jhi@iki.fi>1998-10-27 08:03:05 +0000
commit1fff601ee71b8b7212d98718b9e522d5caf2da7f (patch)
treeccf5705baf68eb64cbcd12b57a748b1eedcea1dc /thread.h
parent7f3d1cf17f00f843a4ab0c805e58fa10c222716a (diff)
downloadperl-1fff601ee71b8b7212d98718b9e522d5caf2da7f.tar.gz
ATTR_JOINABLE logic, based on (private email)
Subject: Some little diffs Message-ID: <36350969.DA33E7B4@mailbox.tabnsw.com.au> p4raw-id: //depot/cfgperl@2096
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/thread.h b/thread.h
index 9e607e0c00..8e95b980db 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