commit | 7b51b8de3809c59ef3cf1baea51c2d63da1c8752 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Wed Mar 14 22:28:25 2012 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Wed Mar 14 22:28:25 2012 -0500 |
tree | e429352b289b7db436233ce968154b540546089b | |
parent | 1767e0274bf68a01cf8ce48905f1e59532013928 [diff] [blame] |
try to fix compilation on glibc's with cpu sets (#14296)
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 @@ #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