summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,