summaryrefslogtreecommitdiffstats
path: root/Modules/resource.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-02-05 19:52:01 (GMT)
committerGitHub <noreply@github.com>2022-02-05 19:52:01 (GMT)
commit96b344c2f15cb09251018f57f19643fe20637392 (patch)
tree3fe6c8f5d1a2897881806db1f3b441d11114adeb /Modules/resource.c
parent9d4161a60ca8b470148ffd6c73e3110a0aa6d66f (diff)
downloadcpython-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.c2
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)