Skip to content

Commit

Permalink
Add gettid() for Linux and Android
Browse files Browse the repository at this point in the history
Fixes #2076
  • Loading branch information
TheDoctor314 authored and JohnTitor committed Mar 4, 2021
1 parent ec86e5f commit 2de2cb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2809,6 +2809,8 @@ extern "C" {
pub fn regfree(preg: *mut ::regex_t);

pub fn android_set_abort_message(msg: *const ::c_char);

pub fn gettid() -> ::pid_t;
}

cfg_if! {
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3594,6 +3594,8 @@ extern "C" {
outbytesleft: *mut ::size_t,
) -> ::size_t;
pub fn iconv_close(cd: iconv_t) -> ::c_int;

pub fn gettid() -> ::pid_t;
}

cfg_if! {
Expand Down

0 comments on commit 2de2cb7

Please sign in to comment.