summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrayJack <gr41.j4ck@gmail.com>2019-10-13 15:25:25 -0300
committerGrayJack <gr41.j4ck@gmail.com>2019-10-13 15:25:25 -0300
commitfb06358b5f0ed49aec219480621fc0037ce9850f (patch)
tree4b23f5f2a7cc0466fc7d760d1e38b128f60bcdcc
parent3a1b3a7f4cfd1d527dab749b01e93c1876f806e8 (diff)
downloadrust-libc-fb06358b5f0ed49aec219480621fc0037ce9850f.tar.gz
Add settimeofday for solaris/illumos
-rw-r--r--src/unix/solarish/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs
index eaa43fe900..49a18367e7 100644
--- a/src/unix/solarish/mod.rs
+++ b/src/unix/solarish/mod.rs
@@ -1889,6 +1889,7 @@ extern "C" {
pub fn srand(seed: ::c_uint);
pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::c_void) -> ::c_int;
+ pub fn settimeofday(tp: *const ::timeval, tz: *const ::c_void) -> ::c_int;
pub fn getifaddrs(ifap: *mut *mut ::ifaddrs) -> ::c_int;
pub fn freeifaddrs(ifa: *mut ::ifaddrs);