From a94417f033388e942d84d884e6855c99a98ae573 Mon Sep 17 00:00:00 2001
From: Garrett Squire <garrettsquire@gmail.com>
Date: Tue, 15 Oct 2019 15:20:35 -0700
Subject: [PATCH] add pthread_attr_get_np for NetBSD

---
 src/unix/bsd/netbsdlike/netbsd/mod.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs
index 97e2634a..efd04059 100644
--- a/src/unix/bsd/netbsdlike/netbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs
@@ -1669,6 +1669,10 @@ extern "C" {
         name: *const ::c_char,
         arg: *mut ::c_void,
     ) -> ::c_int;
+    pub fn pthread_attr_get_np(
+        thread: ::pthread_t,
+        attr: *mut ::pthread_attr_t,
+    ) -> ::c_int;
     pub fn pthread_getattr_np(
         native: ::pthread_t,
         attr: *mut ::pthread_attr_t,
-- 
GitLab