Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 25545:3731be28e1a3 legacy-trunk
Patch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 04 Oct 2002 07:21:24 +0000 |
| parents | 2548e2f323fa |
| children | 76f79bb36fc7 |
line wrap: on
line diff
--- a/Python/thread_pthread.h Fri Oct 04 00:13:02 2002 +0000 +++ b/Python/thread_pthread.h Fri Oct 04 07:21:24 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>
