Skip to content

Commit f129095

Browse files
authored
feat: OFlag::O_PATH for FreeBSD and Fuchsia (#2382)
1 parent 313dac0 commit f129095

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/2382.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `fcntl::OFlag::O_PATH` for FreeBSD and Fuchsia

src/fcntl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ libc_bitflags!(
151151
/// Obtain a file descriptor for low-level access.
152152
///
153153
/// The file itself is not opened and other file operations will fail.
154-
#[cfg(any(linux_android, target_os = "redox"))]
154+
#[cfg(any(linux_android, target_os = "redox", target_os = "freebsd", target_os = "fuchsia"))]
155155
O_PATH;
156156
/// Only allow reading.
157157
///

0 commit comments

Comments
 (0)