diff --git a/changelog/2382.added.md b/changelog/2382.added.md new file mode 100644 index 0000000000..d9b2274157 --- /dev/null +++ b/changelog/2382.added.md @@ -0,0 +1 @@ +Add `fcntl::OFlag::O_PATH` for FreeBSD and Fuchsia diff --git a/src/fcntl.rs b/src/fcntl.rs index a33b2642d3..67204a7272 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -151,7 +151,7 @@ libc_bitflags!( /// Obtain a file descriptor for low-level access. /// /// The file itself is not opened and other file operations will fail. - #[cfg(any(linux_android, target_os = "redox"))] + #[cfg(any(linux_android, target_os = "redox", target_os = "freebsd", target_os = "fuchsia"))] O_PATH; /// Only allow reading. ///