From 7b51b8de3809c59ef3cf1baea51c2d63da1c8752 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 14 Mar 2012 22:28:25 -0500 Subject: try to fix compilation on glibc's with cpu sets (#14296) --- Modules/posixmodule.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #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 -- cgit v0.12