From 30a466408edcf6a81ea8276a03dd60920a6eb736 Mon Sep 17 00:00:00 2001
From: gwenn <gtreguier@gmail.com>
Date: Mon, 25 Jul 2016 22:33:24 +0200
Subject: [PATCH] Fix windows build.

---
 src/lib.rs         | 1 +
 src/tty/mod.rs     | 4 +++-
 src/tty/windows.rs | 7 +++++++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/lib.rs b/src/lib.rs
index 4912cbcc..019a67ad 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -34,6 +34,7 @@ mod kill_ring;
 pub mod line_buffer;
 mod char_iter;
 
+#[macro_use]
 mod tty;
 
 use std::fmt;
diff --git a/src/tty/mod.rs b/src/tty/mod.rs
index 3a15003c..0405a38a 100644
--- a/src/tty/mod.rs
+++ b/src/tty/mod.rs
@@ -3,7 +3,9 @@ extern crate libc;
 
 // If on Windows platform import Windows TTY module
 // and re-export into mod.rs scope
-#[cfg(windows)]mod windows;
+#[macro_use]
+#[cfg(windows)]
+mod windows;
 #[cfg(windows)]
 pub use self::windows::*;
 
diff --git a/src/tty/windows.rs b/src/tty/windows.rs
index 1195e3eb..85ccb2bf 100644
--- a/src/tty/windows.rs
+++ b/src/tty/windows.rs
@@ -1,9 +1,16 @@
 use std::io;
+use std::io::Read;
 use std::marker::PhantomData;
+use std::mem;
+use std::sync::atomic;
+
 use kernel32;
 use winapi;
 
+use consts::{self, KeyPress};
+use ::error;
 use ::Result;
+use SIGWINCH;
 
 pub type Handle = winapi::HANDLE;
 pub type Mode = winapi::DWORD;
-- 
GitLab