summaryrefslogtreecommitdiff
path: root/src/sys/time.rs
diff options
context:
space:
mode:
authorJulio Merino <julio@meroh.net>2018-11-05 11:06:04 -0500
committerJulio Merino <jmmv@google.com>2018-11-07 14:32:33 -0500
commit6a0ff23faceca6dddd81755e233b705c855fc81c (patch)
tree8e29009e15d92bc9be57ebbd8a6dd1cd86538ed5 /src/sys/time.rs
parent50658fd3e5e0ad460c90c9f9b24933ef6be7412b (diff)
downloadnix-6a0ff23faceca6dddd81755e233b705c855fc81c.zip
Make sys::time::{time_t, suseconds_t} public
This allows handling the return values of other public functions (such as TimeVal's tv_sec and tv_usec) without having to pull in these types from libc (which is ugly if a project is trying to use nix exclusively to avoid libc's unsafety).
Diffstat (limited to 'src/sys/time.rs')
-rw-r--r--src/sys/time.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sys/time.rs b/src/sys/time.rs
index 51286a06..e300cfe7 100644
--- a/src/sys/time.rs
+++ b/src/sys/time.rs
@@ -1,5 +1,6 @@
use std::{cmp, fmt, ops};
-use libc::{c_long, time_t, suseconds_t, timespec, timeval};
+use libc::{c_long, timespec, timeval};
+pub use libc::{time_t, suseconds_t};
pub trait TimeValLike: Sized {
#[inline]