summaryrefslogtreecommitdiff
path: root/filesystems/sandboxfs/files/patch-src_lib.rs
blob: ffee8506238245e398c7c11626ffd9fd2437dff0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- 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))