We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5051cac commit 49e82b6Copy full SHA for 49e82b6
src/unix/bsd/freebsdlike/freebsd/mod.rs
@@ -3219,7 +3219,14 @@ cfg_if! {
3219
}
3220
3221
3222
-pub const FIODGNAME: ::c_ulong = 0x80106678;
+cfg_if! {
3223
+ if #[cfg(target_pointer_width = "64")] {
3224
+ pub const FIODGNAME: ::c_ulong = 0x80106678;
3225
+ } else {
3226
+ pub const FIODGNAME: ::c_ulong = 0x80086678;
3227
+ }
3228
+}
3229
+
3230
pub const FIONWRITE: ::c_ulong = 0x40046677;
3231
pub const FIONSPACE: ::c_ulong = 0x40046676;
3232
pub const FIOSEEKDATA: ::c_ulong = 0xc0086661;
0 commit comments