diff --git a/changelog/2391.added.md b/changelog/2391.added.md new file mode 100644 index 0000000000..9989be85fc --- /dev/null +++ b/changelog/2391.added.md @@ -0,0 +1 @@ +Add `open` flag `O_SEARCH` to apple_targets diff --git a/src/fcntl.rs b/src/fcntl.rs index b27a570bac..043cdde473 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -166,7 +166,16 @@ libc_bitflags!( O_RSYNC; /// Open directory for search only. Skip search permission checks on /// later `openat()` calls using the obtained file descriptor. - #[cfg(any(target_os = "netbsd", target_os = "freebsd", solarish, target_os = "fuchsia", target_os = "emscripten", target_os = "aix", target_os = "wasi"))] + #[cfg(any( + apple_targets, + solarish, + target_os = "netbsd", + target_os = "freebsd", + target_os = "fuchsia", + target_os = "emscripten", + target_os = "aix", + target_os = "wasi" + ))] O_SEARCH; /// Open with a shared file lock. #[cfg(any(bsd, target_os = "redox"))]