summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-20 07:25:26 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-20 07:25:26 (GMT)
commit6c2f913805bc0c678c7947502acfea5cb0ae0c3a (patch)
tree532e70969cd5bedd125a482a83b8b01b3d267992 /Modules/posixmodule.c
parent46fa48ab04b68e34884264db5be1082747da379a (diff)
downloadcpython-6c2f913805bc0c678c7947502acfea5cb0ae0c3a.zip
cpython-6c2f913805bc0c678c7947502acfea5cb0ae0c3a.tar.gz
cpython-6c2f913805bc0c678c7947502acfea5cb0ae0c3a.tar.bz2
The helper is only necessary for wait3/4.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 1c28479..7142cac 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__,