mirror of
https://github.com/libuv/libuv
synced 2025-03-28 21:13:16 +00:00
unix: enable getrusage for SunOS (#4707)
Fixes: https://github.com/libuv/libuv/issues/4706
This commit is contained in:
parent
b807450e98
commit
8a94b7b2ec
@ -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__) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user