[Python-checkins] cpython: try to fix compilation on glibc's with cpu sets (#14296)

benjamin.peterson python-checkins at python.org
Thu Mar 15 04:28:36 CET 2012


http://hg.python.org/cpython/rev/760347b11ef8
changeset:   75687:760347b11ef8
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Mar 14 22:28:25 2012 -0500
summary:
  try to fix compilation on glibc's with cpu sets (#14296)

files:
  Modules/posixmodule.c |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -107,6 +107,10 @@
 #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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list