We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 733b5a8 commit 984309cCopy full SHA for 984309c
src/unix/linux_like/linux/arch/mips/mod.rs
@@ -132,5 +132,12 @@ pub const TIOCM_DSR: ::c_int = 0x400;
132
pub const BOTHER: ::speed_t = 0o010000;
133
pub const IBSHIFT: ::tcflag_t = 16;
134
135
-pub const BLKSSZGET: ::c_int = 0x1268;
136
-pub const BLKPBSZGET: ::c_int = 0x127B;
+cfg_if! {
+ if #[cfg(target_endian = "little")] {
137
+ pub const BLKSSZGET: ::c_int = 0x1268;
138
+ pub const BLKPBSZGET: ::c_int = 0x127B;
139
+ } else if #[cfg(target_endian = "big")] {
140
+ pub const BLKSSZGET: ::c_int = 0x6812;
141
+ pub const BLKPBSZGET: ::c_int = 0x7B12;
142
+ }
143
+}
0 commit comments