From b83e43bb0af6899b6f7d909a8ecd1ed9e64ce2f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Marie?= <semarie@users.noreply.github.com>
Date: Thu, 26 Nov 2015 19:54:24 +0100
Subject: [PATCH] unbreak openbsd and bitrig after linking to rt

openbsd and bitrig don't have librt. So do not try to link with.
---
 src/unix/mod.rs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index bdaec1a5..3339003d 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -107,7 +107,9 @@ cfg_if! {
         extern {}
     } else if #[cfg(any(target_os = "macos",
                         target_os = "ios",
-                        target_os = "android"))] {
+                        target_os = "android",
+                        target_os = "openbsd",
+                        target_os = "bitrig"))] {
         #[link(name = "c")]
         #[link(name = "m")]
         extern {}
-- 
GitLab