diff options
author | Paolo Insogna <paolo@cowtech.it> | 2025-02-21 22:02:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-21 22:02:18 +0100 |
commit | 8a94b7b2ec23abc57c5a0bf36c808bc6dcc0ce4f (patch) | |
tree | 0490278e83f870279e42a062544cb85aa28a72f5 /src | |
parent | b807450e982a0e486d3bb266c4314d08ab4eabd2 (diff) | |
download | libuv-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.c | 2 |
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__) */ |