Skip to content

Commit

Permalink
Auto merge of #2100 - TheDoctor314:gettid, r=JohnTitor
Browse files Browse the repository at this point in the history
Add gettid() for Linux

Fixes #2076
  • Loading branch information
bors committed Mar 4, 2021
2 parents ec86e5f + eabf11b commit be9bac9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/linux_like/mod.rs
Expand Up @@ -1666,6 +1666,7 @@ extern "C" {
flags: ::c_int,
) -> ::ssize_t;
pub fn uname(buf: *mut ::utsname) -> ::c_int;
pub fn gettid() -> ::pid_t;
}

cfg_if! {
Expand Down

0 comments on commit be9bac9

Please sign in to comment.