Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4637538

Browse files
committed
fix build when SCHED_SPORADIC is defined (closes #20217)
1 parent cce440f commit 4637538

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Core and Builtins
4343
Library
4444
-------
4545

46+
- Issue #20217: Fix build in SCHED_SPORADIC is defined.
47+
4648
- Issue #13107: argparse and optparse no longer raises an exception when output
4749
a help on environment with too small COLUMNS. Based on patch by
4850
Elazar Gershuni.

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11863,7 +11863,7 @@ all_ins(PyObject *d)
1186311863
if (ins(d, "SCHED_FIFO", (long)SCHED_FIFO)) return -1;
1186411864
if (ins(d, "SCHED_RR", (long)SCHED_RR)) return -1;
1186511865
#ifdef SCHED_SPORADIC
11866-
if (ins(d, "SCHED_SPORADIC", (long)SCHED_SPORADIC) return -1;
11866+
if (ins(d, "SCHED_SPORADIC", (long)SCHED_SPORADIC)) return -1;
1186711867
#endif
1186811868
#ifdef SCHED_BATCH
1186911869
if (ins(d, "SCHED_BATCH", (long)SCHED_BATCH)) return -1;

0 commit comments

Comments
 (0)