commit | bad9c2f13ae2d1b7af3d64506b2ab1ad7850d20a | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Aug 02 18:42:14 2011 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Aug 02 18:42:14 2011 -0500 |
tree | 652ca6ea0db7f29b14e3b8cde894563a6a2868e3 | |
parent | e3298dda6dfb5427b3beab142e563d65c1bd5e84 [diff] |
avoid warning when SchedParamType is not used
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index e6d70d3..f4461c0 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -1609,7 +1609,9 @@ static int initialized; static PyTypeObject StatResultType; static PyTypeObject StatVFSResultType; +#if defined(HAVE_SCHED_SETPARAM) || defined(HAVE_SCHED_SETSCHEDULER) static PyTypeObject SchedParamType; +#endif static newfunc structseq_new; static PyObject *