From b2eec2470cb719309e6e8f40a7b27025ec2c8378 Mon Sep 17 00:00:00 2001 From: Nerijus Arlauskas Date: Sat, 19 Mar 2016 20:14:08 +0200 Subject: [PATCH 1/2] Use now available link name "signal" instead of "bsd_signal". Fixes #236. --- src/unix/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 77b24f229f9a0..1b576ebe952cd 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -408,7 +408,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"), From 0b7ccdd11917810fb9d514a55ab20ea8cb44eb8e Mon Sep 17 00:00:00 2001 From: Nerijus Arlauskas Date: Wed, 6 Apr 2016 20:56:54 +0300 Subject: [PATCH 2/2] Do not skip "signal" when building libc tests. --- libc-test/build.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index 6475db5749c27..8212ea52e44db 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -385,12 +385,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,