Skip to content

Commit

Permalink
Fix musl build by letting Rust infer the correct type for SIOCGIFMTU (c…
Browse files Browse the repository at this point in the history
  • Loading branch information
vkrasnov authored Apr 2, 2019
1 parent b9d72f7 commit 1f842a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/tun_linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl TunSocket {

ifr.ifr_name[..iface_name.len()].copy_from_slice(iface_name);

if unsafe { ioctl(fd, SIOCGIFMTU, &ifr) } < 0 {
if unsafe { ioctl(fd, SIOCGIFMTU as _, &ifr) } < 0 {
return Err(Error::IOCtl(errno_str()));
}

Expand Down

0 comments on commit 1f842a6

Please sign in to comment.