Skip to content

Commit 00c61ee

Browse files
committed
Set correct value for S_IFWHT on macos
1 parent 9c371b6 commit 00c61ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vm/src/stdlib/stat.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ mod stat {
7272

7373
// TODO: RUSTPYTHON Support BSD
7474
// https://man.freebsd.org/cgi/man.cgi?stat(2)
75+
76+
#[cfg(target_os = "macos")]
77+
#[pyattr]
78+
pub const S_IFWHT: Mode = 0o160000;
79+
#[cfg(not(target_os = "macos"))]
7580
#[pyattr]
7681
pub const S_IFWHT: Mode = 0;
7782

0 commit comments

Comments
 (0)