Skip to content

Commit 4deac8e

Browse files
asomerstgross35
authored andcommitted
Fix definition of FIODGNAME on 32-bit FreeBSD
https://github.com/freebsd/freebsd-src/blob/main/sys/sys/filio.h (backport <#3948>) (cherry picked from commit 0b6cab8)
1 parent 0313954 commit 4deac8e

File tree

1 file changed

+8
-1
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+8
-1
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3217,7 +3217,14 @@ cfg_if! {
32173217
}
32183218
}
32193219

3220-
pub const FIODGNAME: ::c_ulong = 0x80106678;
3220+
cfg_if! {
3221+
if #[cfg(target_pointer_width = "64")] {
3222+
pub const FIODGNAME: ::c_ulong = 0x80106678;
3223+
} else {
3224+
pub const FIODGNAME: ::c_ulong = 0x80086678;
3225+
}
3226+
}
3227+
32213228
pub const FIONWRITE: ::c_ulong = 0x40046677;
32223229
pub const FIONSPACE: ::c_ulong = 0x40046676;
32233230
pub const FIOSEEKDATA: ::c_ulong = 0xc0086661;

0 commit comments

Comments
 (0)