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 authored and tgross35 committed Nov 6, 2024
1 parent 8c3cc4c commit 3f5b9fd
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 @@ -3217,7 +3217,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 3f5b9fd

Please sign in to comment.