Skip to content

Commit 3a1b3a7

Browse files
committed
Auto merge of #1537 - nielx:fix/stat-constants, r=gnzlbg
Haiku: Fix constants for S_IFIFO and S_IFCHR
2 parents 7818f12 + abddbd3 commit 3a1b3a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/haiku/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,8 @@ pub const O_NOFOLLOW: ::c_int = 0x00080000;
570570
pub const O_NOCACHE: ::c_int = 0x00100000;
571571
pub const O_DIRECTORY: ::c_int = 0x00200000;
572572

573-
pub const S_IFIFO: ::mode_t = 61440;
574-
pub const S_IFCHR: ::mode_t = 49152;
573+
pub const S_IFIFO: ::mode_t = 4096;
574+
pub const S_IFCHR: ::mode_t = 8192;
575575
pub const S_IFBLK: ::mode_t = 24576;
576576
pub const S_IFDIR: ::mode_t = 16384;
577577
pub const S_IFREG: ::mode_t = 32768;

0 commit comments

Comments
 (0)