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 7c37f9a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/unix/mod.rs
Expand Up @@ -1390,7 +1390,13 @@ 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"))] {
extern "C" {
pub fn adjtime(delta: *const timeval, olddelta: *mut timeval) -> ::c_int;
}
}
}

cfg_if! {
Expand Down

0 comments on commit 7c37f9a

Please sign in to comment.