android: add android_set_abort_message

As definied in set_abort_message.h [1]. Update buils.rs to include
Android-specific headers.

[1] https://android.googlesource.com/platform/bionic/+/master/libc/include/android/set_abort_message.h
This commit is contained in:
Thiébaud Weksteen 2021-01-25 20:55:56 +01:00
parent 77180b6db8
commit 9df0cdf5fe
2 changed files with 7 additions and 0 deletions

View File

@ -1439,6 +1439,11 @@ fn test_android(target: &str) {
}
// Include Android-specific headers:
headers! { cfg:
"android/set_abort_message.h"
}
cfg.type_name(move |ty, is_struct, is_union| {
match ty {
// Just pass all these through, no need for a "struct" prefix

View File

@ -2821,6 +2821,8 @@ extern "C" {
) -> ::size_t;
pub fn regfree(preg: *mut ::regex_t);
pub fn android_set_abort_message(msg: *const ::c_char);
}
cfg_if! {