diff --git a/Cargo.toml b/Cargo.toml index e12c4a6061..c8f4390422 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,7 @@ argon2 = { version = "0.3.4", default-features = false, features = ["alloc"] } base64ct = { version = "1", default-features = false } env_logger = { version = "0.9.0", optional = true } getrandom = { version = "0.2.5", optional = true } +libc = "0.2" log = { version = "0.4.14", default-features = false } redox_syscall = "0.2.12" seahash = { version = "4.1.0", default-features = false } diff --git a/src/bin/mount.rs b/src/bin/mount.rs index cd9d1037e9..ef09553d25 100644 --- a/src/bin/mount.rs +++ b/src/bin/mount.rs @@ -65,7 +65,7 @@ fn bootloader_password() -> Option> { #[cfg(target_os = "redox")] fn fork() -> isize { - unsafe { syscall::Error::mux(syscall::clone(syscall::CloneFlags::empty())) as isize } + unsafe { libc::fork() as isize } } #[cfg(target_os = "redox")]