summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrayJack <gr41.j4ck@gmail.com>2019-10-13 15:08:59 -0300
committerGrayJack <gr41.j4ck@gmail.com>2019-10-13 15:08:59 -0300
commitb97166f68fdde5f3e9aff74c2943968ffe322788 (patch)
tree5c13175a97bc260a99a729657f2be143aa03e522
parent3a1b3a7f4cfd1d527dab749b01e93c1876f806e8 (diff)
downloadrust-libc-b97166f68fdde5f3e9aff74c2943968ffe322788.tar.gz
Add settimeofday for openbsd
-rw-r--r--src/unix/bsd/netbsdlike/openbsd/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs
index d82c3273e6..1e698b4713 100644
--- a/src/unix/bsd/netbsdlike/openbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs
@@ -1374,6 +1374,7 @@ f! {
extern "C" {
pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int;
+ pub fn settimeofday(tp: *const ::timeval, tz: *const ::timezone) -> ::c_int;
pub fn accept4(
s: ::c_int,
addr: *mut ::sockaddr,