Fix build failure on ARM/AArch64/PowerPC/RISC-V FreeBSD/NetBSD
This commit is contained in:
parent
548e14b439
commit
7aa76a7ac3
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ impl Socket {
|
|||
const AF_NAME_MAX: usize = 16;
|
||||
let mut buf = [0; AF_NAME_MAX];
|
||||
for (src, dst) in name.to_bytes().iter().zip(&mut buf[..AF_NAME_MAX - 1]) {
|
||||
*dst = *src as i8;
|
||||
*dst = *src as libc::c_char;
|
||||
}
|
||||
let mut arg: libc::accept_filter_arg = unsafe { mem::zeroed() };
|
||||
arg.af_name = buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue