From 6a04eb97ebbe569ef615685c61db967c7ce6129c Mon Sep 17 00:00:00 2001
From: ru <ru@genesismobo.com>
Date: Wed, 29 Jan 2020 14:18:30 +0100
Subject: [PATCH] structs nlmsghdr, nlmsgerr and nlattr added to linux mips
 musl target

---
 src/unix/linux_like/linux/musl/b32/mips/mod.rs | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/unix/linux_like/linux/musl/b32/mips/mod.rs b/src/unix/linux_like/linux/musl/b32/mips/mod.rs
index be113416..7b5f6287 100644
--- a/src/unix/linux_like/linux/musl/b32/mips/mod.rs
+++ b/src/unix/linux_like/linux/musl/b32/mips/mod.rs
@@ -161,6 +161,24 @@ s! {
         pub f_namemax: ::c_ulong,
         __f_spare: [::c_int; 6],
     }
+
+    pub struct nlmsghdr {
+        pub nlmsg_len: u32,
+        pub nlmsg_type: u16,
+        pub nlmsg_flags: u16,
+        pub nlmsg_seq: u32,
+        pub nlmsg_pid: u32,
+    }
+
+    pub struct nlmsgerr {
+        pub error: ::c_int,
+        pub msg: nlmsghdr,
+    }
+
+    pub struct nlattr {
+        pub nla_len: u16,
+        pub nla_type: u16,
+    }
 }
 
 pub const SIGSTKSZ: ::size_t = 8192;
-- 
GitLab