mirror of
https://github.com/python/cpython.git
synced 2025-11-08 05:39:34 +00:00
fix build when SCHED_SPORADIC is defined (closes #20217)
This commit is contained in:
parent
cce440fab8
commit
463753831c
2 changed files with 3 additions and 1 deletions
|
|
@ -43,6 +43,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #20217: Fix build in SCHED_SPORADIC is defined.
|
||||||
|
|
||||||
- Issue #13107: argparse and optparse no longer raises an exception when output
|
- Issue #13107: argparse and optparse no longer raises an exception when output
|
||||||
a help on environment with too small COLUMNS. Based on patch by
|
a help on environment with too small COLUMNS. Based on patch by
|
||||||
Elazar Gershuni.
|
Elazar Gershuni.
|
||||||
|
|
|
||||||
|
|
@ -11863,7 +11863,7 @@ all_ins(PyObject *d)
|
||||||
if (ins(d, "SCHED_FIFO", (long)SCHED_FIFO)) return -1;
|
if (ins(d, "SCHED_FIFO", (long)SCHED_FIFO)) return -1;
|
||||||
if (ins(d, "SCHED_RR", (long)SCHED_RR)) return -1;
|
if (ins(d, "SCHED_RR", (long)SCHED_RR)) return -1;
|
||||||
#ifdef SCHED_SPORADIC
|
#ifdef SCHED_SPORADIC
|
||||||
if (ins(d, "SCHED_SPORADIC", (long)SCHED_SPORADIC) return -1;
|
if (ins(d, "SCHED_SPORADIC", (long)SCHED_SPORADIC)) return -1;
|
||||||
#endif
|
#endif
|
||||||
#ifdef SCHED_BATCH
|
#ifdef SCHED_BATCH
|
||||||
if (ins(d, "SCHED_BATCH", (long)SCHED_BATCH)) return -1;
|
if (ins(d, "SCHED_BATCH", (long)SCHED_BATCH)) return -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue