From bad9c2f13ae2d1b7af3d64506b2ab1ad7850d20a Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 2 Aug 2011 18:42:14 -0500 Subject: [PATCH] avoid warning when SchedParamType is not used --- Modules/posixmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index e6d70d385e6..f4461c05530 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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 *