[Python-checkins] cpython: fix sched defines

benjamin.peterson python-checkins at python.org
Wed Aug 3 01:11:49 CEST 2011


http://hg.python.org/cpython/rev/a8868c6ede9e
changeset:   71709:a8868c6ede9e
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Aug 02 18:11:38 2011 -0500
summary:
  fix sched defines

files:
  Modules/posixmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -10950,7 +10950,7 @@
 #  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;

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list