Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 20431:cee0fe5fce11 legacy-trunk
Do not define _POSIX_THREADS if unistd.h defines it.
Check for pthread_sigmask before using it. Fixes remaining problem in #470781.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Mon, 15 Oct 2001 14:34:42 +0000 |
| parents | c9a212329da6 |
| children | ebfd87e87884 |
line wrap: on
line diff
--- a/Python/thread_pthread.h Mon Oct 15 13:47:08 2001 +0000 +++ b/Python/thread_pthread.h Mon Oct 15 14:34:42 2001 +0000 @@ -75,7 +75,7 @@ * other UNIX International compliant systems that don't have the full * pthread implementation. */ -#ifdef PY_PTHREAD_STD +#ifdef HAVE_PTHREAD_SIGMASK # define SET_THREAD_SIGMASK pthread_sigmask #else # define SET_THREAD_SIGMASK sigprocmask
