summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-02 23:11:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-02 23:11:38 (GMT)
commit0163c9aa0cb0b3a6ada1bf351ee84375cc5dc9e8 (patch)
tree824d5bd4a3043ac33927b9331926c0a44feca9c8
parentc5fce4ded24da1624abf6574ed0dbf762a5079e8 (diff)
downloadcpython-0163c9aa0cb0b3a6ada1bf351ee84375cc5dc9e8.zip
cpython-0163c9aa0cb0b3a6ada1bf351ee84375cc5dc9e8.tar.gz
cpython-0163c9aa0cb0b3a6ada1bf351ee84375cc5dc9e8.tar.bz2
fix sched defines
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index d7a03ce..752fdf7 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;