diff --git a/src/header/sys_ioctl/redox.rs b/src/header/sys_ioctl/redox.rs
index 4494fa80a2f35c73a3dee6d43abae9c42b026bd5..0b389bb7c603787c8201c44590421258393fcb5f 100644
--- a/src/header/sys_ioctl/redox.rs
+++ b/src/header/sys_ioctl/redox.rs
@@ -2,6 +2,7 @@ use core::{mem, slice};
 use syscall;
 
 use header::errno;
+use header::termios;
 use platform;
 use platform::e;
 use platform::types::*;
@@ -18,7 +19,7 @@ pub unsafe extern "C" fn ioctl(fd: c_int, request: c_ulong, out: *mut c_void) ->
             }
 
             let count = e(syscall::read(dup, unsafe {
-                slice::from_raw_parts_mut(out as *mut u8, mem::size_of::<termios>())
+                slice::from_raw_parts_mut(out as *mut u8, mem::size_of::<termios::termios>())
             }));
             let _ = syscall::close(dup);
 
@@ -35,7 +36,7 @@ pub unsafe extern "C" fn ioctl(fd: c_int, request: c_ulong, out: *mut c_void) ->
             }
 
             let count = e(syscall::write(dup, unsafe {
-                slice::from_raw_parts(out as *const u8, mem::size_of::<termios>())
+                slice::from_raw_parts(out as *const u8, mem::size_of::<termios::termios>())
             }));
             let _ = syscall::close(dup);