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
commitd9a7ff685d43ccd611887acc9d3463a0162bf358 (patch)
tree909f7e4c98ea606579f35cf43fd4ccaec07fcd8c /Python/thread_pthread.h
parent06d78ca3c4854c05395fa4c5e7fac9ca80c144c5 (diff)
downloadcpython-d9a7ff685d43ccd611887acc9d3463a0162bf358.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>