Skip to content

Commit 9df0cdf

Browse files
committed
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
1 parent 77180b6 commit 9df0cdf

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libc-test/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,11 @@ fn test_android(target: &str) {
14391439

14401440
}
14411441

1442+
// Include Android-specific headers:
1443+
headers! { cfg:
1444+
"android/set_abort_message.h"
1445+
}
1446+
14421447
cfg.type_name(move |ty, is_struct, is_union| {
14431448
match ty {
14441449
// Just pass all these through, no need for a "struct" prefix

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,6 +2821,8 @@ extern "C" {
28212821
) -> ::size_t;
28222822

28232823
pub fn regfree(preg: *mut ::regex_t);
2824+
2825+
pub fn android_set_abort_message(msg: *const ::c_char);
28242826
}
28252827

28262828
cfg_if! {

0 commit comments

Comments
 (0)