diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index c7d48b05dda..631201f2078 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