Skip to content

Commit d5d0bdf

Browse files
Add difftime function
1 parent 27430bc commit d5d0bdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)