Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69c0ff3

Browse files
committed
Do not define _POSIX_THREADS if unistd.h defines it.
Check for pthread_sigmask before using it. Fixes remaining problem in #470781.
1 parent c0f1bfe commit 69c0ff3

4 files changed

Lines changed: 336 additions & 289 deletions

File tree

Python/thread_pthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
* other UNIX International compliant systems that don't have the full
7676
* pthread implementation.
7777
*/
78-
#ifdef PY_PTHREAD_STD
78+
#ifdef HAVE_PTHREAD_SIGMASK
7979
# define SET_THREAD_SIGMASK pthread_sigmask
8080
#else
8181
# define SET_THREAD_SIGMASK sigprocmask

0 commit comments

Comments
 (0)