From 6c2f913805bc0c678c7947502acfea5cb0ae0c3a Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 20 Mar 2006 07:25:26 +0000 Subject: [PATCH] The helper is only necessary for wait3/4. --- Modules/posixmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 1c284797321..7142cacba04 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -5097,6 +5097,7 @@ posix_setgroups(PyObject *self, PyObject *args) } #endif /* HAVE_SETGROUPS */ +#if defined(HAVE_WAIT3) || defined(HAVE_WAIT4) static PyObject * wait_helper(int pid, int status, struct rusage *ru) { @@ -5154,6 +5155,7 @@ wait_helper(int pid, int status, struct rusage *ru) return Py_BuildValue("iiO", pid, status, result); } +#endif /* HAVE_WAIT3 || HAVE_WAIT4 */ #ifdef HAVE_WAIT3 PyDoc_STRVAR(posix_wait3__doc__,