From f9928bd6fe266b1c0842caba5a98c045fcfaaad1 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Sat, 30 Jul 2016 03:48:27 -0600
Subject: [PATCH] Fix Redox `get_tty` by adding `env` import (#40)

---
 src/tty.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tty.rs b/src/tty.rs
index ea45135e..c02d8e1b 100644
--- a/src/tty.rs
+++ b/src/tty.rs
@@ -20,6 +20,7 @@ pub fn is_tty<T: AsRawFd>(_stream: T) -> bool {
 /// This allows for getting stdio representing _only_ the TTY, and not other streams.
 #[cfg(target_os = "redox")]
 pub fn get_tty() -> io::Result<fs::File> {
+    use std::env;
     fs::OpenOptions::new().read(true).write(true).open(try!(env::var("TTY")))
 }
 
-- 
GitLab