From f467791b12c568ea2d104aafc3faa768e9b9f69b Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Thu, 25 Jul 2019 21:27:41 -0600 Subject: [PATCH] Fix definition of SIG_ERR --- src/header/signal/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/signal/mod.rs b/src/header/signal/mod.rs index 04f603c6..49db58cb 100644 --- a/src/header/signal/mod.rs +++ b/src/header/signal/mod.rs @@ -23,7 +23,7 @@ type SigSet = BitSet<[c_ulong; 1]>; pub const SIG_DFL: usize = 0; pub const SIG_IGN: usize = 1; -pub const SIG_ERR: usize = !0; +pub const SIG_ERR: isize = -1; pub const SIG_BLOCK: c_int = 0; pub const SIG_UNBLOCK: c_int = 1; -- GitLab