Fix backtrace for android

This commit is contained in:
Alex Crichton 2015-09-18 15:00:36 -07:00
parent a1b948e34a
commit 1e1ff67a9b
2 changed files with 2 additions and 3 deletions

View File

@ -259,6 +259,8 @@ cfg_if! {
newlen: size_t)
-> ::c_int;
pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
pub fn backtrace(buf: *mut *mut ::c_void,
sz: ::c_int) -> ::c_int;
}
}
}

View File

@ -318,9 +318,6 @@ extern {
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;
pub fn setgroups(ngroups: ::size_t,
ptr: *const ::gid_t) -> ::c_int;
#[cfg(not(target_env = "musl"))]
pub fn backtrace(buf: *mut *mut ::c_void,
sz: ::c_int) -> ::c_int;
}
cfg_if! {