Auto merge of #237 - Nercury:use-signal-instead-of-bsd-signal, r=alexcrichton
Use now available link name "signal" instead of "bsd_signal" On android, the `bsd_signal` is gone, the `signal` is available. While this is the most obvious solution, I am not sure of a few things: - How are we going to keep compatibility with older NDKs where `signal` does not exist; - Was something dependent on this being different on android and thus would break (for example, the rust compiler uses this function, so it may break somewhere). Fixes #236.
This commit is contained in:
commit
60f90cf560
@ -397,12 +397,6 @@ fn main() {
|
||||
|
||||
cfg.skip_fn_ptrcheck(move |name| {
|
||||
match name {
|
||||
// This used to be called bsd_signal in rev 18 of the android
|
||||
// platform and is now just called signal, the old `bsd_signal`
|
||||
// symbol, however, still remains, just gives a different function
|
||||
// pointer.
|
||||
"signal" if android => true,
|
||||
|
||||
// dllimport weirdness?
|
||||
_ if windows => true,
|
||||
|
||||
|
@ -411,7 +411,6 @@ extern {
|
||||
|
||||
pub fn ftruncate(fd: ::c_int, length: off_t) -> ::c_int;
|
||||
|
||||
#[cfg_attr(target_os = "android", link_name = "bsd_signal")]
|
||||
pub fn signal(signum: ::c_int, handler: sighandler_t) -> sighandler_t;
|
||||
|
||||
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
|
||||
|
Loading…
Reference in New Issue
Block a user