Skip to content
Snippets Groups Projects
Commit 9c10e929 authored by Will Angenent's avatar Will Angenent
Browse files

Remove conditionals so that builds work on non-linux OSses

parent 26d68d7c
No related branches found
Tags 0.2.19
1 merge request!10Fixes for MacOS build
......@@ -14,6 +14,4 @@ redox_syscall = "0.2.16"
redoxfs = "0.5.4"
tempfile = "3.4.0"
toml = "0.7.2"
[target.'cfg(target_os = "linux")'.dependencies]
proc-mounts = "0.3.0"
......@@ -14,8 +14,6 @@ const SUPPORTED_TARGETS: &'static [&'static str] = &[
"i686-unknown-redox",
];
//TODO: Confirm capabilities on other OSes
#[cfg(target_os = "linux")]
fn installed(program: &str) -> io::Result<bool> {
process::Command::new("which")
.arg(program)
......
......@@ -20,8 +20,6 @@ impl RedoxFs {
Ok(s)
}
//TODO: Confirm capabilities on other OSes
#[cfg(target_os = "linux")]
pub fn mount(&mut self) -> io::Result<()> {
if self.mounted()? {
return Err(io::Error::new(
......@@ -66,8 +64,6 @@ impl RedoxFs {
Ok(())
}
//TODO: Confirm capabilities on other OSes
#[cfg(target_os = "linux")]
pub fn unmount(&mut self) -> io::Result<()> {
if self.mounted()? {
Command::new("fusermount")
......@@ -87,8 +83,6 @@ impl RedoxFs {
Ok(())
}
//TODO: Confirm capabilities on other OSes
#[cfg(target_os = "linux")]
pub fn mounted(&self) -> io::Result<bool> {
use proc_mounts::MountIter;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment