Skip to content

Commit

Permalink
Fix definition of FIODGNAME on 32-bit FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Oct 2, 2024
1 parent 2ae1040 commit b38ee9e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3152,7 +3152,14 @@ cfg_if! {
}
}

pub const FIODGNAME: ::c_ulong = 0x80106678;
cfg_if! {
if #[cfg(target_pointer_width = "64")] {
pub const FIODGNAME: ::c_ulong = 0x80106678;
} else {
pub const FIODGNAME: ::c_ulong = 0x80086678;
}
}

pub const FIONWRITE: ::c_ulong = 0x40046677;
pub const FIONSPACE: ::c_ulong = 0x40046676;
pub const FIOSEEKDATA: ::c_ulong = 0xc0086661;
Expand Down

0 comments on commit b38ee9e

Please sign in to comment.