From 0163c9aa0cb0b3a6ada1bf351ee84375cc5dc9e8 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 2 Aug 2011 18:11:38 -0500 Subject: [PATCH] fix sched defines --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3