We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c8aa21 commit 7c37f9aCopy full SHA for 7c37f9a
src/unix/mod.rs
@@ -1390,7 +1390,13 @@ extern "C" {
1390
1391
pub fn lockf(fd: ::c_int, cmd: ::c_int, len: ::off_t) -> ::c_int;
1392
1393
- pub fn adjtime(delta: *const timeval, olddelta: *mut timeval) -> ::c_int;
+}
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
1400
}
1401
1402
cfg_if! {
0 commit comments