From b7c3e5c0260c3152a612b3f119c2c398ec93a644 Mon Sep 17 00:00:00 2001 From: Sebastian Wicki Date: Fri, 26 Feb 2016 21:58:19 +0100 Subject: [PATCH] Fix deprecated NetBSD sigaction/sigaltstack symbols --- src/unix/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 374985dd..dd8351d2 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -500,11 +500,13 @@ extern { optval: *mut ::c_void, optlen: *mut ::socklen_t) -> ::c_int; pub fn raise(signum: ::c_int) -> ::c_int; + #[cfg_attr(target_os = "netbsd", link_name = "__sigaction14")] pub fn sigaction(signum: ::c_int, act: *const sigaction, oldact: *mut sigaction) -> ::c_int; #[cfg_attr(all(target_os = "macos", target_arch = "x86"), link_name = "sigaltstack$UNIX2003")] + #[cfg_attr(target_os = "netbsd", link_name = "__sigaltstack14")] pub fn sigaltstack(ss: *const stack_t, oss: *mut stack_t) -> ::c_int;