Skip to content
Snippets Groups Projects
Commit 26d91938 authored by gnzlbg's avatar gnzlbg
Browse files

Warn users of gettimeofday of potential breaking change

parent 3956bf05
No related branches found
No related tags found
No related merge requests found
...@@ -837,6 +837,14 @@ extern { ...@@ -837,6 +837,14 @@ extern {
pub fn flock(fd: ::c_int, operation: ::c_int) -> ::c_int; pub fn flock(fd: ::c_int, operation: ::c_int) -> ::c_int;
#[cfg_attr(target_os = "netbsd", link_name = "__gettimeofday50")] #[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, pub fn gettimeofday(tp: *mut ::timeval,
tz: *mut ::c_void) -> ::c_int; tz: *mut ::c_void) -> ::c_int;
#[cfg_attr(target_os = "netbsd", link_name = "__times13")] #[cfg_attr(target_os = "netbsd", link_name = "__times13")]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment