Skip to content

Commit

Permalink
Merge pull request #3591 from chenx97/fs-ioc-mipsr6
Browse files Browse the repository at this point in the history
Add missing MIPS R6 FS_IOC_* definitions
  • Loading branch information
JohnTitor committed Feb 22, 2024
2 parents 16827f2 + 6630e09 commit 7ab4d52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/linux_like/linux/arch/mips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ cfg_if! {
// where S stands for size (int, long, struct...)
// where T stands for type ('f','v','X'...)
// where N stands for NR (NumbeR)
if #[cfg(target_arch = "mips")] {
if #[cfg(any(target_arch = "mips", target_arch = "mips32r6"))] {
pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40046601;
pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80046602;
pub const FS_IOC_GETVERSION: ::Ioctl = 0x40047601;
Expand All @@ -209,7 +209,7 @@ cfg_if! {
pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046602;
pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40047601;
pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047602;
} else if #[cfg(target_arch = "mips64")] {
} else if #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"))] {
pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40086601;
pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80086602;
pub const FS_IOC_GETVERSION: ::Ioctl = 0x40087601;
Expand Down

0 comments on commit 7ab4d52

Please sign in to comment.