summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-10-16 07:42:58 +0000
committerbors <bors@rust-lang.org>2019-10-16 07:42:58 +0000
commit7b31ef34ede6860ce2a4cfeeef01b02f8120a607 (patch)
tree3a0059f5281d18c45cdf6e0bd2aeda68e9cfa7be
parente857f95106c3b701afc6b131bf41857bec3d3d32 (diff)
parentf6d9f0230d8c6d7ce00c82a95cf5ac680337b98f (diff)
downloadrust-libc-7b31ef34ede6860ce2a4cfeeef01b02f8120a607.tar.gz
Auto merge of #1548 - GrayJack:openbsd-settime, r=gnzlbg
Add settimeofday for openbsd Closes #1546
-rw-r--r--src/unix/bsd/netbsdlike/openbsd/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs
index d82c3273e6..f70fddf59c 100644
--- a/src/unix/bsd/netbsdlike/openbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs
@@ -1374,6 +1374,10 @@ 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,