diff Python/thread_pthread.h @ 25547:61822d2b5e88 2.2

Patch #618347: Work around Solaris pthread.h bug.
author Martin v. Löwis <martin@v.loewis.de>
date Fri, 04 Oct 2002 10:16:27 +0000
parents d24aadfe3c06
children 9eb6964b4b6c
line wrap: on
line diff
--- a/Python/thread_pthread.h	Thu Oct 03 15:27:47 2002 +0000
+++ b/Python/thread_pthread.h	Fri Oct 04 10:16:27 2002 +0000
@@ -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>