Auto merge of #1548 - GrayJack:openbsd-settime, r=gnzlbg

Add settimeofday for openbsd

Closes #1546
This commit is contained in:
bors 2019-10-16 07:42:58 +00:00
commit 7b31ef34ed
1 changed files with 4 additions and 0 deletions

View File

@ -1374,6 +1374,10 @@ f! {
extern "C" { extern "C" {
pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int; 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( pub fn accept4(
s: ::c_int, s: ::c_int,
addr: *mut ::sockaddr, addr: *mut ::sockaddr,