Skip to content

Commit 7c37f9a

Browse files
committed
Remove adjtime for emscripten
1 parent 9c8aa21 commit 7c37f9a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/unix/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,13 @@ extern "C" {
13901390

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

1393-
pub fn adjtime(delta: *const timeval, olddelta: *mut timeval) -> ::c_int;
1393+
}
1394+
cfg_if! {
1395+
if #[cfg(not(target_os = "emscripten"))] {
1396+
extern "C" {
1397+
pub fn adjtime(delta: *const timeval, olddelta: *mut timeval) -> ::c_int;
1398+
}
1399+
}
13941400
}
13951401

13961402
cfg_if! {

0 commit comments

Comments
 (0)