mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 16:40:31 -04:00
15 lines
722 B
Rust
15 lines
722 B
Rust
--- src/lib.rs.orig 2020-04-20 18:46:46 UTC
|
|
+++ src/lib.rs
|
|
@@ -463,10 +463,10 @@ impl SandboxFS {
|
|
#[cfg(target_os = "linux")]
|
|
let code = Errno::ENODATA;
|
|
|
|
- #[cfg(target_os = "macos")]
|
|
+ #[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "macos"))]
|
|
let code = Errno::ENOATTR;
|
|
|
|
- #[cfg(not(any(target_os = "linux", target_os = "macos")))]
|
|
+ #[cfg(not(any(target_os = "dragonfly", target_os = "freebsd", target_os = "linux", target_os = "macos")))]
|
|
compile_error!("Don't know what error to return on a missing getxattr");
|
|
|
|
Err(KernelError::from_errno(code))
|