From: Benjamin Peterson Date: Tue, 2 Aug 2011 23:11:38 +0000 (-0500) Subject: fix sched defines X-Git-Tag: v3.3.0a1~1767 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0163c9aa0cb0b3a6ada1bf351ee84375cc5dc9e8;p=thirdparty%2FPython%2Fcpython.git fix sched defines --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index d7a03cef61b2..752fdf7f98cd 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -10950,7 +10950,7 @@ INITFUNC(void) # endif #endif -#ifdef HAVE_SCHED_H +#if defined(HAVE_SCHED_SETPARAM) || defined(HAVE_SCHED_SETSCHEDULER) sched_param_desc.name = MODNAME ".sched_param"; PyStructSequence_InitType(&SchedParamType, &sched_param_desc); SchedParamType.tp_new = sched_param_new;