Commit 6c2f9138 authored by Neal Norwitz's avatar Neal Norwitz

The helper is only necessary for wait3/4.

parent 46fa48ab
...@@ -5097,6 +5097,7 @@ posix_setgroups(PyObject *self, PyObject *args) ...@@ -5097,6 +5097,7 @@ posix_setgroups(PyObject *self, PyObject *args)
} }
#endif /* HAVE_SETGROUPS */ #endif /* HAVE_SETGROUPS */
#if defined(HAVE_WAIT3) || defined(HAVE_WAIT4)
static PyObject * static PyObject *
wait_helper(int pid, int status, struct rusage *ru) wait_helper(int pid, int status, struct rusage *ru)
{ {
...@@ -5154,6 +5155,7 @@ 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); return Py_BuildValue("iiO", pid, status, result);
} }
#endif /* HAVE_WAIT3 || HAVE_WAIT4 */
#ifdef HAVE_WAIT3 #ifdef HAVE_WAIT3
PyDoc_STRVAR(posix_wait3__doc__, PyDoc_STRVAR(posix_wait3__doc__,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment