From 26d919382c489a5ee138e5c885ce9c57b5bb0676 Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Tue, 14 May 2019 12:20:05 +0200 Subject: [PATCH] Warn users of gettimeofday of potential breaking change --- src/unix/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 1be00953..cfd2246b 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -837,6 +837,14 @@ extern { pub fn flock(fd: ::c_int, operation: ::c_int) -> ::c_int; #[cfg_attr(target_os = "netbsd", link_name = "__gettimeofday50")] + #[deprecated( + since="0.2.54", + note= + "The signature of this function is incorrect. \ + If you are using it, please report that in the following issue \ + so that we can evaluate the impact of fixing it: \ + https://github.com/rust-lang/libc/issues/1338" + )] pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int; #[cfg_attr(target_os = "netbsd", link_name = "__times13")]