Skip to content

Commit 0b6cab8

Browse files
committed
1 parent f2b8b8f commit 0b6cab8

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
@@ -3152,7 +3152,14 @@ cfg_if! {
31523152
}
31533153
}
31543154

3155-
pub const FIODGNAME: ::c_ulong = 0x80106678;
3155+
cfg_if! {
3156+
if #[cfg(target_pointer_width = "64")] {
3157+
pub const FIODGNAME: ::c_ulong = 0x80106678;
3158+
} else {
3159+
pub const FIODGNAME: ::c_ulong = 0x80086678;
3160+
}
3161+
}
3162+
31563163
pub const FIONWRITE: ::c_ulong = 0x40046677;
31573164
pub const FIONSPACE: ::c_ulong = 0x40046676;
31583165
pub const FIOSEEKDATA: ::c_ulong = 0xc0086661;

0 commit comments

Comments
 (0)