Fix build on OpenBSD (#12111)

# Description
Apply the same fix as
[#11823](https://github.com/nushell/nushell/pull/11823) for OpenBSD.
This commit is contained in:
VlkrS 2024-03-07 21:14:06 +01:00 committed by GitHub
parent 48fca1c151
commit ce116b5d5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -299,7 +299,8 @@ fn make_attributes(preserve: Option<Value>) -> Result<uu_cp::Attributes, ShellEr
target_os = "freebsd",
target_os = "android",
target_os = "macos",
target_os = "netbsd"
target_os = "netbsd",
target_os = "openbsd"
))]
ownership: ATTR_UNSET,
mode: ATTR_UNSET,
@ -320,7 +321,8 @@ fn make_attributes(preserve: Option<Value>) -> Result<uu_cp::Attributes, ShellEr
target_os = "freebsd",
target_os = "android",
target_os = "macos",
target_os = "netbsd"
target_os = "netbsd",
target_os = "openbsd"
))]
ownership: ATTR_UNSET,
timestamps: ATTR_UNSET,
@ -362,7 +364,8 @@ fn parse_and_set_attribute(
target_os = "freebsd",
target_os = "android",
target_os = "macos",
target_os = "netbsd"
target_os = "netbsd",
target_os = "openbsd"
))]
"ownership" => &mut attribute.ownership,
"timestamps" => &mut attribute.timestamps,