summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-10-15 14:34:42 +0000
committerMartin v. Löwis <martin@v.loewis.de>2001-10-15 14:34:42 +0000
commitea90aa51aebe83c515896d116d4e758460959199 (patch)
treeb63c5cc6ffbef5d1b052f791df9b4b77715e03a4 /Python/thread_pthread.h
parent8970cfff37363fd4f9e9606da0f1b2dc561a6f18 (diff)
downloadcpython-ea90aa51aebe83c515896d116d4e758460959199.tar.gz
Do not define _POSIX_THREADS if unistd.h defines it.
Check for pthread_sigmask before using it. Fixes remaining problem in #470781.
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 2592d39d5c..7170c8a812 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -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