[Python-checkins] cpython (3.3): fix build when SCHED_SPORADIC is defined (closes #20217)

benjamin.peterson python-checkins at python.org
Fri Jan 10 16:25:13 CET 2014


http://hg.python.org/cpython/rev/4f74ea7eba03
changeset:   88395:4f74ea7eba03
branch:      3.3
parent:      88392:201077b57fe0
user:        Benjamin Peterson <benjamin at python.org>
date:        Fri Jan 10 09:22:40 2014 -0600
summary:
  fix build when SCHED_SPORADIC is defined (closes #20217)

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


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -43,6 +43,8 @@
 Library
 -------
 
+- Issue #20217: Fix build in SCHED_SPORADIC is defined.
+
 - Issue #13107: argparse and optparse no longer raises an exception when output
   a help on environment with too small COLUMNS.  Based on patch by
   Elazar Gershuni.
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -11863,7 +11863,7 @@
     if (ins(d, "SCHED_FIFO", (long)SCHED_FIFO)) return -1;
     if (ins(d, "SCHED_RR", (long)SCHED_RR)) return -1;
 #ifdef SCHED_SPORADIC
-    if (ins(d, "SCHED_SPORADIC", (long)SCHED_SPORADIC) return -1;
+    if (ins(d, "SCHED_SPORADIC", (long)SCHED_SPORADIC)) return -1;
 #endif
 #ifdef SCHED_BATCH
     if (ins(d, "SCHED_BATCH", (long)SCHED_BATCH)) return -1;

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


More information about the Python-checkins mailing list