From a1aa3433ca90c5c75b4a8fedbab23013889d34b1 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Tue, 2 Jan 2024 03:38:01 +0000 Subject: [PATCH] fcntl::OFlags enabling O_DIRECT flag for solarish (#2278) --- Cargo.toml | 2 +- changelog/2278.added.md | 1 + src/fcntl.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelog/2278.added.md diff --git a/Cargo.toml b/Cargo.toml index f428548584..f064e20f1c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ targets = [ ] [dependencies] -libc = { git = "https://github.com/rust-lang/libc", rev = "6a203e955b60cca48562f020f0e4e003079f3199", features = ["extra_traits"] } +libc = { git = "https://github.com/rust-lang/libc", rev = "cb18b837963c37a8d21732f3ca2c2096f04e6830", features = ["extra_traits"] } bitflags = "2.3.1" cfg-if = "1.0" pin-utils = { version = "0.1.0", optional = true } diff --git a/changelog/2278.added.md b/changelog/2278.added.md new file mode 100644 index 0000000000..88a07c79a8 --- /dev/null +++ b/changelog/2278.added.md @@ -0,0 +1 @@ +Enabled `O_DIRECT` in `fcntl::OFlags` for solarish diff --git a/src/fcntl.rs b/src/fcntl.rs index 338944fd04..8ede0777b3 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -92,6 +92,7 @@ libc_bitflags!( #[cfg(any( freebsdlike, linux_android, + solarish, target_os = "netbsd" ))] O_DIRECT;