From bf9e630f65b01af536ee1d306057bdec333c5f53 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 29 Jul 2022 09:25:17 -0600 Subject: [PATCH] Fix building proc scheme on non-x86_64 --- src/scheme/proc.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/scheme/proc.rs b/src/scheme/proc.rs index d2ddacf..3c06996 100644 --- a/src/scheme/proc.rs +++ b/src/scheme/proc.rs @@ -712,7 +712,7 @@ impl Scheme for ProcScheme { } } - #[cfg(target_arch = "aarch64")] + #[cfg(not(target_arch = "x86_64"))] fn write(&self, id: usize, buf: &[u8]) -> Result { //TODO Err(Error::new(EINVAL)) @@ -1081,6 +1081,13 @@ impl Scheme for ProcScheme { Ok(0) } + #[cfg(not(target_arch = "x86_64"))] + fn close(&self, id: usize) -> Result { + //TODO + Err(Error::new(EINVAL)) + } + + #[cfg(target_arch = "x86_64")] fn close(&self, id: usize) -> Result { let mut handle = self.handles.write().remove(&id).ok_or(Error::new(EBADF))?; handle.continue_ignored_children();