]> granicus.if.org Git - python/commitdiff
fix build when SCHED_SPORADIC is defined (closes #20217)
authorBenjamin Peterson <benjamin@python.org>
Fri, 10 Jan 2014 15:22:40 +0000 (09:22 -0600)
committerBenjamin Peterson <benjamin@python.org>
Fri, 10 Jan 2014 15:22:40 +0000 (09:22 -0600)
Misc/NEWS
Modules/posixmodule.c

index 88f718ed9538d249b37fa5f18f45c629f68950bc..f703991999870c9b3ac7110e87f04c8acb678289 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -43,6 +43,8 @@ Core and Builtins
 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.
index c00ca203c5b02e856b6ced5e465bdd4c6c30e57a..905b1de4ea385f80f92385fa41dd74662959d46a 100644 (file)
@@ -11863,7 +11863,7 @@ all_ins(PyObject *d)
     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;