1 --- src/lib.rs.orig	2020-04-20 18:46:46 UTC
2 +++ src/lib.rs
3 @@ -463,10 +463,10 @@ impl SandboxFS {
4                  #[cfg(target_os = "linux")]
5                  let code = Errno::ENODATA;
6 
7 -                #[cfg(target_os = "macos")]
8 +                #[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "macos"))]
9                  let code = Errno::ENOATTR;
10 
11 -                #[cfg(not(any(target_os = "linux", target_os = "macos")))]
12 +                #[cfg(not(any(target_os = "dragonfly", target_os = "freebsd", target_os = "linux", target_os = "macos")))]
13                  compile_error!("Don't know what error to return on a missing getxattr");
14 
15                  Err(KernelError::from_errno(code))
16