Commit 46375383 authored by Benjamin Peterson's avatar Benjamin Peterson

fix build when SCHED_SPORADIC is defined (closes #20217)

parent cce440fa
......@@ -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.
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment