summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-01-11 23:18:09 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-01-11 23:32:27 +0100
commitd5d0bdf414c798d64edab402d52f230513461b4f (patch)
treee153b2efa83d80f0674d4cf0031ec3b0e7091eba
parent27430bc4926c90d92e099902574a9bb208c56f86 (diff)
downloadrust-libc-d5d0bdf414c798d64edab402d52f230513461b4f.tar.gz
Add difftime function
-rw-r--r--src/unix/mod.rs2
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,