From 07a0190be97c010f3b3f628b83ad8e93e0bc77b0 Mon Sep 17 00:00:00 2001
From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
Date: Thu, 29 Sep 2016 11:31:02 -0500
Subject: [PATCH] Recognize 32-bit NetBSD

---
 src/unix/bsd/netbsdlike/netbsd/other/b32/mod.rs | 2 ++
 src/unix/bsd/netbsdlike/netbsd/other/mod.rs     | 5 +++++
 2 files changed, 7 insertions(+)
 create mode 100644 src/unix/bsd/netbsdlike/netbsd/other/b32/mod.rs

diff --git a/src/unix/bsd/netbsdlike/netbsd/other/b32/mod.rs b/src/unix/bsd/netbsdlike/netbsd/other/b32/mod.rs
new file mode 100644
index 00000000..9b0b338b
--- /dev/null
+++ b/src/unix/bsd/netbsdlike/netbsd/other/b32/mod.rs
@@ -0,0 +1,2 @@
+pub type c_long = i32;
+pub type c_ulong = u32;
diff --git a/src/unix/bsd/netbsdlike/netbsd/other/mod.rs b/src/unix/bsd/netbsdlike/netbsd/other/mod.rs
index fffa07f2..f4e7cc40 100644
--- a/src/unix/bsd/netbsdlike/netbsd/other/mod.rs
+++ b/src/unix/bsd/netbsdlike/netbsd/other/mod.rs
@@ -2,6 +2,11 @@ cfg_if! {
     if #[cfg(target_arch = "x86_64")] {
         mod b64;
         pub use self::b64::*;
+    } else if #[cfg(any(target_arch = "arm",
+                        target_arch = "powerpc",
+                        target_arch = "x86"))] {
+        mod b32;
+        pub use self::b32::*;
     } else {
         // Unknown target_arch
     }
-- 
GitLab