From c871ca0ad06b7419f93c343b61dc752e0a3c174b Mon Sep 17 00:00:00 2001 From: "Join.G" Date: Tue, 7 May 2024 06:58:32 +0800 Subject: [PATCH] fix compile issue. --- .github/workflows/wasi-v86-macos.yml | 1 - crates/tuntap/src/platform/linux/sys.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wasi-v86-macos.yml b/.github/workflows/wasi-v86-macos.yml index e1d65c1..fa897f0 100644 --- a/.github/workflows/wasi-v86-macos.yml +++ b/.github/workflows/wasi-v86-macos.yml @@ -31,7 +31,6 @@ jobs: with: toolchain: stable target: ${{ matrix.target }} - - run: rustup target add ${{ matrix.target }} - name: Build v86-wasi uses: actions-rs/cargo@v1 with: diff --git a/crates/tuntap/src/platform/linux/sys.rs b/crates/tuntap/src/platform/linux/sys.rs index b7fdd3d..a3780d0 100644 --- a/crates/tuntap/src/platform/linux/sys.rs +++ b/crates/tuntap/src/platform/linux/sys.rs @@ -18,7 +18,7 @@ pub struct ifreq { #[repr(C)] #[derive(Copy, Clone)] pub union ifreq_ifrn { - pub ifrn_name: [::std::os::raw::c_char; 16usize], + pub ifrn_name: [i8; 16usize], align: [u8; 16usize], } @@ -72,7 +72,7 @@ impl ifreq { pub const IFF_UP: u16 = libc::IFF_UP as _; pub const IFF_RUNNING: u16 = libc::IFF_RUNNING as _; -pub const IFF_TUN: u16 = libc::IFF_TUN as _; +pub const IFF_TUN: u16 = libc::IFF_TUN as _; pub const IFF_TAP: u16 = libc::IFF_TAP as _; const IFF_NO_PI: u16 = 0x0100; const IFF_ONE_QUEUE: u16 = 0x0200;