summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-04 10:16:27 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-10-04 10:16:27 +0000
commit067010f7faf6c2a00cc9d9e235c12d8da46d7d4f (patch)
tree58d814a4950e6095fba07351d41c24c45540a274 /Python/thread_pthread.h
parent154040994dbecc1040cdd13ba846968004ce3377 (diff)
downloadcpython-git-067010f7faf6c2a00cc9d9e235c12d8da46d7d4f.tar.gz
Patch #618347: Work around Solaris pthread.h bug.
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 771e22e913..a7ae538e5c 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>