Merge pull request #160 from alexcrichton/netbsd-pthread

Add pthread_setname_np for NetBSD
This commit is contained in:
Alex Crichton 2016-01-28 19:32:20 -08:00
commit 91ff43c736

View File

@ -366,4 +366,7 @@ extern {
addr: *mut ::c_void,
data: ::c_int) -> ::c_int;
pub fn sethostname(name: *const ::c_char, len: ::size_t) -> ::c_int;
pub fn pthread_setname_np(t: ::pthread_t,
name: *const ::c_char,
arg: *mut ::c_void) -> ::c_int;
}