Skip to content

Commit 7b31ef3

Browse files
committed
Auto merge of #1548 - GrayJack:openbsd-settime, r=gnzlbg
Add settimeofday for openbsd Closes #1546
2 parents e857f95 + f6d9f02 commit 7b31ef3

File tree

1 file changed

+4
-0
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+4
-0
lines changed

src/unix/bsd/netbsdlike/openbsd/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1374,6 +1374,10 @@ f! {
13741374

13751375
extern "C" {
13761376
pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int;
1377+
pub fn settimeofday(
1378+
tp: *const ::timeval,
1379+
tz: *const ::timezone,
1380+
) -> ::c_int;
13771381
pub fn accept4(
13781382
s: ::c_int,
13791383
addr: *mut ::sockaddr,

0 commit comments

Comments
 (0)