Skip to content

Commit 0930305

Browse files
committed
Warn users of gettimeofday of potential breaking change
1 parent 495a7d2 commit 0930305

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,10 @@ extern {
837837
pub fn flock(fd: ::c_int, operation: ::c_int) -> ::c_int;
838838

839839
#[cfg_attr(target_os = "netbsd", link_name = "__gettimeofday50")]
840+
#[deprecated(
841+
since="0.2.54",
842+
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"
843+
)]
840844
pub fn gettimeofday(tp: *mut ::timeval,
841845
tz: *mut ::c_void) -> ::c_int;
842846
#[cfg_attr(target_os = "netbsd", link_name = "__times13")]

0 commit comments

Comments
 (0)