Yamakaky / tun-rs

Tools in rust to manage TUN/TAP interfaces.
4 stars 0 forks source link

macOS complie error #3

Open LuoZijun opened 6 years ago

LuoZijun commented 6 years ago

In Cargo.toml Line 11:

ioctl = "0.3"

in ioctl lib source code src/lib.rs :

Line 10

extern crate libc as real_libc;
#[macro_use]
extern crate bitflags;

#[cfg(target_os = "linux")]
#[path = "platform/linux.rs"]
#[macro_use]
mod platform;

pub use platform::*;   // ERROR IF NOT Linux Kernel.

the crate platform will not avabile xnu ( or other bsd like kernel system ).

Yamakaky commented 6 years ago

I don't dev this crate anymore, you can do it if you want