From 4e2d917a2a3a97a1b3a70d83563e998dafca4a66 Mon Sep 17 00:00:00 2001
From: Travis Paul
Date: Tue, 26 Dec 2023 20:22:02 -0600
Subject: [PATCH] Enable OFlag::O_DIRECTORY for Solarish (#2275)
* No longer omit O_DIRECTORY for Solarish
* Add changelog
* Change changelog type and message
---
changelog/2275.added.md | 1 +
src/fcntl.rs | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
create mode 100644 changelog/2275.added.md
diff --git a/changelog/2275.added.md b/changelog/2275.added.md
new file mode 100644
index 0000000000..05a8e46817
--- /dev/null
+++ b/changelog/2275.added.md
@@ -0,0 +1 @@
+Enable `OFlag::O_DIRECTORY for Solarish
diff --git a/src/fcntl.rs b/src/fcntl.rs
index be399db6d2..338944fd04 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -96,7 +96,6 @@ libc_bitflags!(
))]
O_DIRECT;
/// If the specified path isn't a directory, fail.
- #[cfg(not(solarish))]
O_DIRECTORY;
/// Implicitly follow each `write()` with an `fdatasync()`.
#[cfg(any(linux_android, apple_targets, netbsdlike))]