From 0c8e61ab4a354559cd546d8a4c34c5d85615352f Mon Sep 17 00:00:00 2001
From: Alex Crichton <alex@alexcrichton.com>
Date: Sun, 22 Nov 2015 10:14:13 -0800
Subject: [PATCH] Don't link librt on android

---
 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 3dc7f626..bdaec1a5 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -105,7 +105,9 @@ cfg_if! {
     } else if #[cfg(target_env = "musl")] {
         #[link(name = "c", kind = "static")]
         extern {}
-    } else if #[cfg(any(target_os = "macos", target_os = "ios"))] {
+    } else if #[cfg(any(target_os = "macos",
+                        target_os = "ios",
+                        target_os = "android"))] {
         #[link(name = "c")]
         #[link(name = "m")]
         extern {}
-- 
GitLab