error[E0425]: cannot find function `pthread_getname_np` in crate `libc`
Error: --> /cargo/registry/src/github.com-1ecc6299db9ec823/pprof-0.4.3/src/profiler.rs:112:30
|
112 | let ret = unsafe { libc::pthread_getname_np(current_thread, name_ptr, MAX_THREAD_NAME) };
| ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `pthread_getattr_np`
|
::: /cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.95/src/unix/linux_like/mod.rs:1490:5
|
1490 | pub fn pthread_getattr_np(native: ::pthread_t, attr: *mut ::pthread_attr_t) -> ::c_int;
| --------------------------------------------------------------------------------------- similarly named function `pthread_getattr_np` defined here
error: aborting due to previous error
Error: aborting due to previous error
For more information about this error, try `rustc --explain E0425`.
error: could not compile `pprof`
Error: could not compile `pprof`