From: Benjamin Peterson Date: Tue, 2 Aug 2011 23:42:14 +0000 (-0500) Subject: avoid warning when SchedParamType is not used X-Git-Tag: v3.3.0a1~1763 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bad9c2f13ae2d1b7af3d64506b2ab1ad7850d20a;p=thirdparty%2FPython%2Fcpython.git avoid warning when SchedParamType is not used --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index e6d70d385e6e..f4461c055301 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 *