1
0
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:
Paolo Insogna 2025-02-21 22:02:18 +01:00 committed by GitHub
parent b807450e98
commit 8a94b7b2ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1078,6 +1078,8 @@ int uv_getrusage_thread(uv_rusage_t* rusage) {
return 0; return 0;
#elif defined(RUSAGE_LWP)
return uv__getrusage(RUSAGE_LWP, rusage);
#elif defined(RUSAGE_THREAD) #elif defined(RUSAGE_THREAD)
return uv__getrusage(RUSAGE_THREAD, rusage); return uv__getrusage(RUSAGE_THREAD, rusage);
#endif /* defined(__APPLE__) */ #endif /* defined(__APPLE__) */