mirror of
https://github.com/python/cpython.git
synced 2025-11-10 22:36:18 +00:00
only add sched_param if it is initialized
This commit is contained in:
parent
8f7bdd3208
commit
e3298dda6d
1 changed files with 3 additions and 0 deletions
|
|
@ -10965,8 +10965,11 @@ INITFUNC(void)
|
||||||
Py_INCREF((PyObject*) &StatVFSResultType);
|
Py_INCREF((PyObject*) &StatVFSResultType);
|
||||||
PyModule_AddObject(m, "statvfs_result",
|
PyModule_AddObject(m, "statvfs_result",
|
||||||
(PyObject*) &StatVFSResultType);
|
(PyObject*) &StatVFSResultType);
|
||||||
|
|
||||||
|
#if defined(HAVE_SCHED_SETPARAM) || defined(HAVE_SCHED_SETSCHEDULER)
|
||||||
Py_INCREF(&SchedParamType);
|
Py_INCREF(&SchedParamType);
|
||||||
PyModule_AddObject(m, "sched_param", (PyObject *)&SchedParamType);
|
PyModule_AddObject(m, "sched_param", (PyObject *)&SchedParamType);
|
||||||
|
#endif
|
||||||
initialized = 1;
|
initialized = 1;
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue