summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-03-15 03:28:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-03-15 03:28:25 (GMT)
commit7b51b8de3809c59ef3cf1baea51c2d63da1c8752 (patch)
treee429352b289b7db436233ce968154b540546089b /Modules
parent1767e0274bf68a01cf8ce48905f1e59532013928 (diff)
downloadcpython-7b51b8de3809c59ef3cf1baea51c2d63da1c8752.zip
cpython-7b51b8de3809c59ef3cf1baea51c2d63da1c8752.tar.gz
cpython-7b51b8de3809c59ef3cf1baea51c2d63da1c8752.tar.bz2
try to fix compilation on glibc's with cpu sets (#14296)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index c7d48b0..631201f 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -107,6 +107,10 @@ corresponding Unix manual entries for more information on calls.");
#include <sched.h>
#endif
+#if defined(CPU_ALLOC) && defined(HAVE_SCHED_SETAFFINITY)
+#undef HAVE_SCHED_SETAFFINITY
+#endif
+
#if defined(HAVE_SYS_XATTR_H) && defined(__GLIBC__)
#define USE_XATTRS
#endif