Skip to content

Commit

Permalink
Warn users of gettimeofday of potential breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed May 14, 2019
1 parent 495a7d2 commit 0930305
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,10 @@ 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")]
Expand Down

0 comments on commit 0930305

Please sign in to comment.