about summary refs log tree commit diff
path: root/src/libtime/lib.rs
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-02-26 12:58:41 -0500
committerAlex Crichton <alex@alexcrichton.com>2014-04-04 09:31:44 -0700
commit0459ee77d0c764cc27950465cb19053e1456cc95 (patch)
tree9fa60ca3a09b8bf87bcd9a53ca3c673f84610e5c /src/libtime/lib.rs
parent06ad5eb459f1072d79a815210d69af55ef174d20 (diff)
downloadrust-0459ee77d0c764cc27950465cb19053e1456cc95.tar.gz
rust-0459ee77d0c764cc27950465cb19053e1456cc95.zip
Fix fallout from std::libc separation
Diffstat (limited to 'src/libtime/lib.rs')
-rw-r--r--src/libtime/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libtime/lib.rs b/src/libtime/lib.rs
index f3398942575..23ffb7813ba 100644
--- a/src/libtime/lib.rs
+++ b/src/libtime/lib.rs
@@ -20,9 +20,9 @@
 
 #[cfg(test)] #[phase(syntax, link)] extern crate log;
 extern crate serialize;
+extern crate libc;
 
 use std::io::BufReader;
-use std::libc;
 use std::num;
 use std::str;
 
@@ -42,7 +42,7 @@ mod rustrt {
 
 #[cfg(unix, not(target_os = "macos"))]
 mod imp {
-    use std::libc::{c_int, timespec};
+    use libc::{c_int, timespec};
 
     // Apparently android provides this in some other library?
     #[cfg(not(target_os = "android"))]
@@ -56,7 +56,7 @@ mod imp {
 }
 #[cfg(target_os = "macos")]
 mod imp {
-    use std::libc::{timeval, timezone, c_int, mach_timebase_info};
+    use libc::{timeval, timezone, c_int, mach_timebase_info};
 
     extern {
         pub fn gettimeofday(tp: *mut timeval, tzp: *mut timezone) -> c_int;
@@ -1076,7 +1076,7 @@ mod tests {
 
     #[cfg(windows)]
     fn set_time_zone() {
-        use std::libc;
+        use libc;
         // Windows crt doesn't see any environment variable set by
         // `SetEnvironmentVariable`, which `os::setenv` internally uses.
         // It is why we use `putenv` here.