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

View File

@ -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,