diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 631201f2078..03b3b956254 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -107,7 +107,7 @@ corresponding Unix manual entries for more information on calls."); #include #endif -#if defined(CPU_ALLOC) && defined(HAVE_SCHED_SETAFFINITY) +#if !defined(CPU_ALLOC) && defined(HAVE_SCHED_SETAFFINITY) #undef HAVE_SCHED_SETAFFINITY #endif