diff options
author | Christian Heimes <christian@python.org> | 2022-02-05 19:52:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 19:52:01 (GMT) |
commit | 96b344c2f15cb09251018f57f19643fe20637392 (patch) | |
tree | 3fe6c8f5d1a2897881806db1f3b441d11114adeb /Modules/resource.c | |
parent | 9d4161a60ca8b470148ffd6c73e3110a0aa6d66f (diff) | |
download | cpython-96b344c2f15cb09251018f57f19643fe20637392.zip cpython-96b344c2f15cb09251018f57f19643fe20637392.tar.gz cpython-96b344c2f15cb09251018f57f19643fe20637392.tar.bz2 |
bpo-40280: Address more test failures on Emscripten (GH-31050)
Co-authored-by: Brett Cannon <brett@python.org>
Diffstat (limited to 'Modules/resource.c')
-rw-r--r-- | Modules/resource.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/resource.c b/Modules/resource.c index 0d69c29..d8bba2e 100644 --- a/Modules/resource.c +++ b/Modules/resource.c @@ -78,6 +78,7 @@ get_resource_state(PyObject *module) static struct PyModuleDef resourcemodule; +#ifdef HAVE_GETRUSAGE /*[clinic input] resource.getrusage @@ -134,6 +135,7 @@ resource_getrusage_impl(PyObject *module, int who) return result; } +#endif static int py2rlimit(PyObject *limits, struct rlimit *rl_out) |