diff --git a/src/header/signal/mod.rs b/src/header/signal/mod.rs
index 9ba4f70c95c4eb708ae18f2a595ba4271eee3c0e..1e125cefd30ba13b996d4ec892be90088e64effa 100644
--- a/src/header/signal/mod.rs
+++ b/src/header/signal/mod.rs
@@ -259,9 +259,9 @@ pub extern "C" fn sigpending(set: *mut sigset_t) -> c_int {
     Sys::sigpending(set)
 }
 
-const BELOW_SIGRTMIN_MASK: u64 = (1 << SIGRTMIN) - 1;
-const STANDARD_SIG_MASK: u64 = (1 << 32) - 1;
-const RLCT_SIGNAL_MASK: u64 = BELOW_SIGRTMIN_MASK & !STANDARD_SIG_MASK;
+const BELOW_SIGRTMIN_MASK: c_ulong = (1 << SIGRTMIN) - 1;
+const STANDARD_SIG_MASK: c_ulong = (1 << 32) - 1;
+const RLCT_SIGNAL_MASK: c_ulong = BELOW_SIGRTMIN_MASK & !STANDARD_SIG_MASK;
 
 #[no_mangle]
 pub unsafe extern "C" fn sigprocmask(how: c_int, set: *const sigset_t, oset: *mut sigset_t) -> c_int {
diff --git a/src/header/time/mod.rs b/src/header/time/mod.rs
index bdb876a7da9ecb712608c64e8db4ba91bd1dbc80..8074dc9140b08cc0a02c4544e62300137a8915db 100644
--- a/src/header/time/mod.rs
+++ b/src/header/time/mod.rs
@@ -29,12 +29,12 @@ impl timespec {
         Some(if later_nsec > earlier_nsec {
             timespec {
                 tv_sec: later.tv_sec.checked_sub(earlier.tv_sec)?,
-                tv_nsec: (later_nsec - earlier_nsec) as i64,
+                tv_nsec: (later_nsec - earlier_nsec) as c_long,
             }
         } else {
             timespec {
                 tv_sec: later.tv_sec.checked_sub(earlier.tv_sec)?.checked_sub(1)?,
-                tv_nsec: 1_000_000_000 - (earlier_nsec - later_nsec) as i64,
+                tv_nsec: 1_000_000_000 - (earlier_nsec - later_nsec) as c_long,
             }
         })
     }