Skip to content

Commit cb20da6

Browse files
committed
Link ntp_gettime as ntp_gettimex
1 parent 1f85581 commit cb20da6

File tree

1 file changed

+1
-0
lines changed
  • src/unix/linux_like/linux/gnu

1 file changed

+1
-0
lines changed

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,7 @@ extern "C" {
10661066

10671067
pub fn adjtimex(buf: *mut timex) -> ::c_int;
10681068
pub fn ntp_adjtime(buf: *mut timex) -> ::c_int;
1069+
#[link_name(ntp_gettimex)]
10691070
pub fn ntp_gettime(buf: *mut ntptimeval) -> ::c_int;
10701071
}
10711072

0 commit comments

Comments
 (0)