From: Benjamin Peterson Date: Fri, 10 Jan 2014 15:22:40 +0000 (-0600) Subject: fix build when SCHED_SPORADIC is defined (closes #20217) X-Git-Tag: v3.3.4rc1~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=463753831c1c50a079d04db210bf120dc0a5411c;p=python fix build when SCHED_SPORADIC is defined (closes #20217) --- diff --git a/Misc/NEWS b/Misc/NEWS index 88f718ed95..f703991999 100644 --- 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. diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index c00ca203c5..905b1de4ea 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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;