diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-01-11 23:18:09 +0100 |
---|---|---|
committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-01-11 23:32:27 +0100 |
commit | d5d0bdf414c798d64edab402d52f230513461b4f (patch) | |
tree | e153b2efa83d80f0674d4cf0031ec3b0e7091eba | |
parent | 27430bc4926c90d92e099902574a9bb208c56f86 (diff) | |
download | rust-libc-d5d0bdf414c798d64edab402d52f230513461b4f.tar.gz |
Add difftime function
-rw-r--r-- | src/unix/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 35a7f448ec..57067e02c8 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -767,6 +767,8 @@ extern { pub fn gmtime(time_p: *const time_t) -> *mut tm; #[cfg_attr(target_os = "netbsd", link_name = "__locatime50")] pub fn localtime(time_p: *const time_t) -> *mut tm; + #[cfg_attr(target_os = "netbsd", link_name = "__difftime50")] + pub fn difftime(time1: time_t, time0: time_t) -> ::c_double; #[cfg_attr(target_os = "netbsd", link_name = "__mknod50")] pub fn mknod(pathname: *const ::c_char, mode: ::mode_t, |