Skip to content
Snippets Groups Projects
Commit 5ab8c050 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix for build on OS X

parent d0c698a0
No related branches found
No related tags found
No related merge requests found
...@@ -32,11 +32,12 @@ fn fork() -> isize { ...@@ -32,11 +32,12 @@ fn fork() -> isize {
#[cfg(unix)] #[cfg(unix)]
fn pipe(pipes: &mut [i32; 2]) -> isize { fn pipe(pipes: &mut [i32; 2]) -> isize {
unsafe { libc::pipe2(pipes.as_mut_ptr(), 0) as isize } unsafe { libc::pipe(pipes.as_mut_ptr()) as isize }
} }
#[cfg(all(unix, target_os = "macos"))] #[cfg(all(unix, target_os = "macos"))]
fn mount<P: AsRef<Path>>(filesystem: redoxfs::FileSystem, mountpoint: &P, mut write: File) { fn mount<P: AsRef<Path>>(filesystem: redoxfs::FileSystem, mountpoint: &P, mut write: File) {
use std::ffi::OsStr;
use std::io::Write; use std::io::Write;
let _ = write.write(&[0]); let _ = write.write(&[0]);
......
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