mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
www/garage: fix build on ARM / POWER
error[E0308]: mismatched types --> /wrkdirs/usr/ports/www/garage/work/garage/cargo-crates/pnet_datalink-0.28.0/src/bpf.rs:133:29 | 133 | iface.ifr_name[i] = c as i8; | ----------------- ^^^^^^^ expected `u8`, found `i8` | | | expected due to the type of this binding
This commit is contained in:
parent
fc1e88e570
commit
84555099e3
@ -0,0 +1,11 @@
|
||||
--- cargo-crates/pnet_datalink-0.28.0/src/bpf.rs.orig 2022-06-08 16:54:23 UTC
|
||||
+++ cargo-crates/pnet_datalink-0.28.0/src/bpf.rs
|
||||
@@ -130,7 +130,7 @@ pub fn channel(network_interface: &NetworkInterface, c
|
||||
}
|
||||
let mut iface: bpf::ifreq = unsafe { mem::zeroed() };
|
||||
for (i, c) in network_interface.name.bytes().enumerate() {
|
||||
- iface.ifr_name[i] = c as i8;
|
||||
+ iface.ifr_name[i] = c as libc::c_char;
|
||||
}
|
||||
|
||||
let buflen = config.read_buffer_size as libc::c_uint;
|
Loading…
Reference in New Issue
Block a user