Skip to content

Commit

Permalink
Define some consts on 1.25 ot higher
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jan 7, 2021
1 parent e18dc03 commit a39cf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/linux_like/linux/mod.rs
Expand Up @@ -2645,7 +2645,7 @@ pub const CANFD_BRS: ::c_int = 0x01;
pub const CANFD_ESI: ::c_int = 0x02;

cfg_if! {
if #[cfg(libc_const_size_of)] {
if #[cfg(libc_align)] {
pub const CAN_MTU: usize = ::mem::size_of::<can_frame>();
pub const CANFD_MTU: usize = ::mem::size_of::<canfd_frame>();
}
Expand Down

0 comments on commit a39cf0d

Please sign in to comment.