]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
try to fix compilation on glibc's with cpu sets (#14296)
authorBenjamin Peterson <benjamin@python.org>
Thu, 15 Mar 2012 03:28:25 +0000 (22:28 -0500)
committerBenjamin Peterson <benjamin@python.org>
Thu, 15 Mar 2012 03:28:25 +0000 (22:28 -0500)
Modules/posixmodule.c

index c7d48b05ddae822bbaa69964a623ba8959a0f856..631201f2078c826a9bf31f43c198d9bcf0e05d21 100644 (file)
@@ -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