From: Benjamin Peterson Date: Thu, 15 Mar 2012 03:28:25 +0000 (-0500) Subject: try to fix compilation on glibc's with cpu sets (#14296) X-Git-Tag: v3.3.0a2~178 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b51b8de3809c59ef3cf1baea51c2d63da1c8752;p=thirdparty%2FPython%2Fcpython.git try to fix compilation on glibc's with cpu sets (#14296) --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index c7d48b05ddae..631201f2078c 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