diff options
author | bors <bors@rust-lang.org> | 2019-10-16 07:42:58 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2019-10-16 07:42:58 +0000 |
commit | 7b31ef34ede6860ce2a4cfeeef01b02f8120a607 (patch) | |
tree | 3a0059f5281d18c45cdf6e0bd2aeda68e9cfa7be /src/unix/bsd/netbsdlike/openbsd/mod.rs | |
parent | e857f95106c3b701afc6b131bf41857bec3d3d32 (diff) | |
parent | f6d9f0230d8c6d7ce00c82a95cf5ac680337b98f (diff) | |
download | rust-libc-7b31ef34ede6860ce2a4cfeeef01b02f8120a607.tar.gz |
Auto merge of #1548 - GrayJack:openbsd-settime, r=gnzlbg
Add settimeofday for openbsd
Closes #1546
Diffstat (limited to 'src/unix/bsd/netbsdlike/openbsd/mod.rs')
-rw-r--r-- | src/unix/bsd/netbsdlike/openbsd/mod.rs | 4 |
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, |