about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2024-08-11 10:14:57 +0000
committerDavid Carlier <devnexen@gmail.com>2024-08-12 23:44:00 +0100
commita7be5bf683be4b69cc92e42bc2ae695724dc47e0 (patch)
tree147cbc34c8ff693271e4923d75549ade781ab1de
parent91376f416222a238227c84a848d168835ede2cc3 (diff)
downloadrust-a7be5bf683be4b69cc92e42bc2ae695724dc47e0.tar.gz
rust-a7be5bf683be4b69cc92e42bc2ae695724dc47e0.zip
std::fs: get_mode implementation for haiku.
-rw-r--r--library/std/src/sys/pal/unix/fs.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/unix/fs.rs b/library/std/src/sys/pal/unix/fs.rs
index bdb83f07857..ff7ee4fdfa8 100644
--- a/library/std/src/sys/pal/unix/fs.rs
+++ b/library/std/src/sys/pal/unix/fs.rs
@@ -1561,6 +1561,7 @@ impl fmt::Debug for File {
             target_os = "vxworks",
             target_os = "solaris",
             target_os = "illumos",
+            target_os = "haiku",
             target_vendor = "apple",
         ))]
         fn get_mode(fd: c_int) -> Option<(bool, bool)> {
@@ -1585,6 +1586,7 @@ impl fmt::Debug for File {
             target_os = "vxworks",
             target_os = "solaris",
             target_os = "illumos",
+            target_os = "haiku",
             target_vendor = "apple",
         )))]
         fn get_mode(_fd: c_int) -> Option<(bool, bool)> {