Skip to content

Commit f07db57

Browse files
committed
fixup: merge dragonflybsd/freebsd; fix argument type on linux
1 parent 9adecd8 commit f07db57

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,6 @@ f! {
10081008
}
10091009

10101010
extern {
1011-
pub fn gettimeofday(tp: *mut ::timeval,
1012-
tz: *mut ::timezone) -> ::c_int;
10131011
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int)
10141012
-> ::c_int;
10151013
pub fn clock_getres(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int;

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,8 +1249,6 @@ f! {
12491249
}
12501250

12511251
extern {
1252-
pub fn gettimeofday(tp: *mut ::timeval,
1253-
tz: *mut ::timezone) -> ::c_int;
12541252
pub fn __error() -> *mut ::c_int;
12551253

12561254
pub fn mprotect(addr: *const ::c_void, len: ::size_t, prot: ::c_int)

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,8 @@ extern {
10951095
-> ::c_int;
10961096

10971097
pub fn daemon(nochdir: ::c_int, noclose: ::c_int) -> ::c_int;
1098-
1098+
pub fn gettimeofday(tp: *mut ::timeval,
1099+
tz: *mut ::timezone) -> ::c_int;
10991100
pub fn accept4(s: ::c_int, addr: *mut ::sockaddr,
11001101
addrlen: *mut ::socklen_t, flags: ::c_int) -> ::c_int;
11011102
pub fn aio_read(aiocbp: *mut aiocb) -> ::c_int;

src/unix/notbsd/linux/other/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ extern {
917917
pub fn getpt() -> ::c_int;
918918
pub fn mallopt(param: ::c_int, value: ::c_int) -> ::c_int;
919919
pub fn gettimeofday(tp: *mut ::timeval,
920-
tz: *mut ::c_void) -> ::c_int;
920+
tz: *mut ::timezone) -> ::c_int;
921921
}
922922

923923
#[link(name = "util")]

0 commit comments

Comments
 (0)