std::fs: get_mode implementation for haiku. · patricklam/verify-rust-std@5fabf93 (original) (raw)

Original file line number Diff line number Diff line change
@@ -1561,6 +1561,7 @@ impl fmt::Debug for File {
1561 1561 target_os = "vxworks",
1562 1562 target_os = "solaris",
1563 1563 target_os = "illumos",
1564 + target_os = "haiku",
1564 1565 target_vendor = "apple",
1565 1566 ))]
1566 1567 fn get_mode(fd: c_int) -> Option<(bool, bool)> {
@@ -1585,6 +1586,7 @@ impl fmt::Debug for File {
1585 1586 target_os = "vxworks",
1586 1587 target_os = "solaris",
1587 1588 target_os = "illumos",
1589 + target_os = "haiku",
1588 1590 target_vendor = "apple",
1589 1591 )))]
1590 1592 fn get_mode(_fd: c_int) -> Option<(bool, bool)> {