Skip to content

Commit 16a0f4a

Browse files
committed
Auto merge of #895 - GuillaumeGomez:difftime, r=alexcrichton
Difftime Once merged, can you update the crate too please?
2 parents 27430bc + e91769e commit 16a0f4a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "libc"
4-
version = "0.2.35"
4+
version = "0.2.36"
55
authors = ["The Rust Project Developers"]
66
license = "MIT/Apache-2.0"
77
readme = "README.md"

src/unix/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ extern {
767767
pub fn gmtime(time_p: *const time_t) -> *mut tm;
768768
#[cfg_attr(target_os = "netbsd", link_name = "__locatime50")]
769769
pub fn localtime(time_p: *const time_t) -> *mut tm;
770+
#[cfg_attr(target_os = "netbsd", link_name = "__difftime50")]
771+
pub fn difftime(time1: time_t, time0: time_t) -> ::c_double;
770772

771773
#[cfg_attr(target_os = "netbsd", link_name = "__mknod50")]
772774
pub fn mknod(pathname: *const ::c_char, mode: ::mode_t,

0 commit comments

Comments
 (0)