From 4497a7867d56ef61194e4cbb63ef4c4fe146e4c6 Mon Sep 17 00:00:00 2001
From: gnzlbg <gonzalobg88@gmail.com>
Date: Wed, 15 May 2019 19:20:39 +0200
Subject: [PATCH] Fix ucontext_t and NFT_MSG_MAX on x86_64

---
 src/unix/notbsd/linux/other/b64/x86_64.rs | 1 +
 src/unix/notbsd/linux/other/mod.rs        | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/unix/notbsd/linux/other/b64/x86_64.rs b/src/unix/notbsd/linux/other/b64/x86_64.rs
index d4f4ffc4..79f27e08 100644
--- a/src/unix/notbsd/linux/other/b64/x86_64.rs
+++ b/src/unix/notbsd/linux/other/b64/x86_64.rs
@@ -231,6 +231,7 @@ s_no_extra_traits! {
         pub uc_mcontext: mcontext_t,
         pub uc_sigmask: ::sigset_t,
         __private: [u8; 512],
+        __ssp: [::c_ulonglong; 4],
     }
 }
 
diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs
index 12dec10d..45b9cafb 100644
--- a/src/unix/notbsd/linux/other/mod.rs
+++ b/src/unix/notbsd/linux/other/mod.rs
@@ -758,7 +758,7 @@ cfg_if! {
         pub const NFT_MSG_GETOBJ: ::c_int = 19;
         pub const NFT_MSG_DELOBJ: ::c_int = 20;
         pub const NFT_MSG_GETOBJ_RESET: ::c_int = 21;
-        pub const NFT_MSG_MAX: ::c_int = 22;
+        pub const NFT_MSG_MAX: ::c_int = 25;
     } else {
         pub const NFT_MSG_MAX: ::c_int = 18;
     }
-- 
GitLab