Skip to content

Commit 49e82b6

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 5051cac commit 49e82b6

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
@@ -3219,7 +3219,14 @@ cfg_if! {
32193219
}
32203220
}
32213221

3222-
pub const FIODGNAME: ::c_ulong = 0x80106678;
3222+
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+
32233230
pub const FIONWRITE: ::c_ulong = 0x40046677;
32243231
pub const FIONSPACE: ::c_ulong = 0x40046676;
32253232
pub const FIOSEEKDATA: ::c_ulong = 0xc0086661;

0 commit comments

Comments
 (0)