Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0930305

Browse files
committedMay 14, 2019
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

+4
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)
Please sign in to comment.