Skip to content

Commit

Permalink
Remove adjtime for emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
guyru committed Apr 13, 2022
1 parent 9c8aa21 commit e0097ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/unix/mod.rs
Expand Up @@ -1390,7 +1390,11 @@ extern "C" {

pub fn lockf(fd: ::c_int, cmd: ::c_int, len: ::off_t) -> ::c_int;

pub fn adjtime(delta: *const timeval, olddelta: *mut timeval) -> ::c_int;
cfg_if! {
if #[cfg(not(target_os = "emscripten"))] {
pub fn adjtime(delta: *const timeval, olddelta: *mut timeval) -> ::c_int;
}
}
}

cfg_if! {
Expand Down

0 comments on commit e0097ba

Please sign in to comment.