Skip to content

Commit a39cf0d

Browse files
committed
Define some consts on 1.25 ot higher
1 parent e18dc03 commit a39cf0d

File tree

1 file changed

+1
-1
lines changed
  • src/unix/linux_like/linux

1 file changed

+1
-1
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2645,7 +2645,7 @@ pub const CANFD_BRS: ::c_int = 0x01;
26452645
pub const CANFD_ESI: ::c_int = 0x02;
26462646

26472647
cfg_if! {
2648-
if #[cfg(libc_const_size_of)] {
2648+
if #[cfg(libc_align)] {
26492649
pub const CAN_MTU: usize = ::mem::size_of::<can_frame>();
26502650
pub const CANFD_MTU: usize = ::mem::size_of::<canfd_frame>();
26512651
}

0 commit comments

Comments
 (0)