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 984309c commit 62f9f5fCopy full SHA for 62f9f5f
src/unix/linux_like/linux/arch/powerpc/mod.rs
@@ -110,5 +110,12 @@ pub const TIOCM_DSR: ::c_int = 0x100;
110
pub const BOTHER: ::speed_t = 0o0037;
111
pub const IBSHIFT: ::tcflag_t = 16;
112
113
-pub const BLKSSZGET: ::c_int = 0x1268;
114
-pub const BLKPBSZGET: ::c_int = 0x127B;
+cfg_if! {
+ if #[cfg(target_endian = "little")] {
115
+ pub const BLKSSZGET: ::c_int = 0x1268;
116
+ pub const BLKPBSZGET: ::c_int = 0x127B;
117
+ } else if #[cfg(target_endian = "big")] {
118
+ pub const BLKSSZGET: ::c_int = 0x6812;
119
+ pub const BLKPBSZGET: ::c_int = 0x7B12;
120
+ }
121
+}
0 commit comments