mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Do not define _POSIX_THREADS if unistd.h defines it.
Check for pthread_sigmask before using it. Fixes remaining problem in #470781.
This commit is contained in:
parent
c0f1bfec05
commit
69c0ff3836
4 changed files with 336 additions and 289 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue