]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
avoid warning when SchedParamType is not used
authorBenjamin Peterson <benjamin@python.org>
Tue, 2 Aug 2011 23:42:14 +0000 (18:42 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 2 Aug 2011 23:42:14 +0000 (18:42 -0500)
Modules/posixmodule.c

index e6d70d385e6e937272041e9fdfd5b2618719eec3..f4461c05530171d7ab16ebd1bab00cd5f32118a0 100644 (file)
@@ -1609,7 +1609,9 @@ static PyTypeObject WaitidResultType;
 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 *