summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-04 07:21:24 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-10-04 07:21:24 +0000
commita7a76d3d9eb77b4dd3129d34ba8df636ce2e6014 (patch)
tree0cc2558cbe36eed85ac9a84cd304a856c9977f8c /Python/thread_pthread.h
parent3d61a06aa288f2fc64f33c6b09c0778ac4083861 (diff)
downloadcpython-git-a7a76d3d9eb77b4dd3129d34ba8df636ce2e6014.tar.gz
Patch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 556445e583..c9f695726e 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -3,11 +3,11 @@
#include <stdlib.h>
#include <string.h>
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR)
#define destructor xxdestructor
#endif
#include <pthread.h>
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR)
#undef destructor
#endif
#include <signal.h>