aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaolo Insogna <paolo@cowtech.it>2025-02-21 22:02:18 +0100
committerGitHub <noreply@github.com>2025-02-21 22:02:18 +0100
commit8a94b7b2ec23abc57c5a0bf36c808bc6dcc0ce4f (patch)
tree0490278e83f870279e42a062544cb85aa28a72f5 /src
parentb807450e982a0e486d3bb266c4314d08ab4eabd2 (diff)
downloadlibuv-8a94b7b2ec23abc57c5a0bf36c808bc6dcc0ce4f.tar.gz
libuv-8a94b7b2ec23abc57c5a0bf36c808bc6dcc0ce4f.zip
unix: enable getrusage for SunOS (#4707)
Fixes: https://github.com/libuv/libuv/issues/4706
Diffstat (limited to 'src')
-rw-r--r--src/unix/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/core.c b/src/unix/core.c
index 61cbc0d0..e64ea81d 100644
--- a/src/unix/core.c
+++ b/src/unix/core.c
@@ -1078,6 +1078,8 @@ int uv_getrusage_thread(uv_rusage_t* rusage) {
return 0;
+#elif defined(RUSAGE_LWP)
+ return uv__getrusage(RUSAGE_LWP, rusage);
#elif defined(RUSAGE_THREAD)
return uv__getrusage(RUSAGE_THREAD, rusage);
#endif /* defined(__APPLE__) */