From aafab85e304df1984906bae3a266e56f5b52821c Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Sat, 6 Feb 2016 05:46:41 -0500 Subject: [PATCH 1/2] Fixed a typo in the #[cfg()] of gettimeofday. The #[cfg()] was looking for 'arget_os' instead of 'target_os'. --- src/unix/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index c56246a3..ebc20952 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -411,7 +411,7 @@ extern { pub fn flock(fd: ::c_int, operation: ::c_int) -> ::c_int; - #[cfg_attr(arget_os = "netbsd", link_name = "__gettimeofday50")] + #[cfg_attr(target_os = "netbsd", link_name = "__gettimeofday50")] pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int; From bb0988c95855f590685d95489cccdf095aa38f22 Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Sat, 6 Feb 2016 05:46:41 -0500 Subject: [PATCH 2/2] Fixed a typo in the #[cfg()] of gettimeofday. The #[cfg()] was looking for 'arget_os' instead of 'target_os'. --- src/unix/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index c56246a3..ebc20952 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -411,7 +411,7 @@ extern { pub fn flock(fd: ::c_int, operation: ::c_int) -> ::c_int; - #[cfg_attr(arget_os = "netbsd", link_name = "__gettimeofday50")] + #[cfg_attr(target_os = "netbsd", link_name = "__gettimeofday50")] pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int;