summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-07-31 06:21:50 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-07-31 06:21:50 (GMT)
commitdbaa559b7fc6b80c1f230119f609b99b5b3844f3 (patch)
tree6a22e0eecb3d9f1f648e4a4f16bd3e84670e5089 /Modules
parent3a32bdfaa7494bfc172b04bdb1c8159978af8d42 (diff)
downloadcpython-dbaa559b7fc6b80c1f230119f609b99b5b3844f3.zip
cpython-dbaa559b7fc6b80c1f230119f609b99b5b3844f3.tar.gz
cpython-dbaa559b7fc6b80c1f230119f609b99b5b3844f3.tar.bz2
all SCHED_ constants are optional (closes #27656)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index ee600fc..b854caf 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -12750,9 +12750,15 @@ all_ins(PyObject *m)
#endif
#ifdef HAVE_SCHED_H
+#ifdef SCHED_OTHER
if (PyModule_AddIntMacro(m, SCHED_OTHER)) return -1;
+#endif
+#ifdef SCHED_FIFO
if (PyModule_AddIntMacro(m, SCHED_FIFO)) return -1;
+#endif
+#ifdef SCHED_RR
if (PyModule_AddIntMacro(m, SCHED_RR)) return -1;
+#endif
#ifdef SCHED_SPORADIC
if (PyModule_AddIntMacro(m, SCHED_SPORADIC) return -1;
#endif