Issue #10440: Support RUSAGE_THREAD as a constant in the resource module.
Patch by Robert Collins.
diff --git a/Modules/resource.c b/Modules/resource.c
index 6d8bd57..450f08c 100644
--- a/Modules/resource.c
+++ b/Modules/resource.c
@@ -325,6 +325,10 @@
PyModule_AddIntConstant(m, "RUSAGE_BOTH", RUSAGE_BOTH);
#endif
+#ifdef RUSAGE_THREAD
+ PyModule_AddIntConstant(m, "RUSAGE_THREAD", RUSAGE_THREAD);
+#endif
+
#if defined(HAVE_LONG_LONG)
if (sizeof(RLIM_INFINITY) > sizeof(long)) {
v = PyLong_FromLongLong((PY_LONG_LONG) RLIM_INFINITY);