]> granicus.if.org Git - python/commitdiff
fix sched defines
authorBenjamin Peterson <benjamin@python.org>
Tue, 2 Aug 2011 23:11:38 +0000 (18:11 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 2 Aug 2011 23:11:38 +0000 (18:11 -0500)
Modules/posixmodule.c

index d7a03cef61b211820441c6c201091590ea0b8842..752fdf7f98cd1047aaad05af7a676df0185eff91 100644 (file)
@@ -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;