diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-10-15 11:22:58 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-10-15 11:22:58 +0200 |
commit | 8766b03694ae21029a4e15d6993a67d2f73cfe50 (patch) | |
tree | a53ed4a33aa3c2b29b493e8a41f8193273c21552 | |
parent | 8537cd92e53ab3915fc1a7488215ff2cd86f7285 (diff) |
compile on musl: change type of SIOC constants to c_int
-rw-r--r-- | src/tunnel.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tunnel.rs b/src/tunnel.rs index 0599239..27da8eb 100644 --- a/src/tunnel.rs +++ b/src/tunnel.rs @@ -1,13 +1,13 @@ use crate::{Error, Result}; -use std::ffi::{c_ulong, CString}; +use std::ffi::{c_int, CString}; use std::io; use std::net::{Ipv4Addr, Ipv6Addr}; use bitfield::bitfield; -const SIOCADDTUNNEL: c_ulong = 0x89F0 + 1; -const SIOCDELTUNNEL: c_ulong = 0x89F0 + 2; +const SIOCADDTUNNEL: c_int = 0x89F0 + 1; +const SIOCDELTUNNEL: c_int = 0x89F0 + 2; /// A handle to a 6in4 tunnel. The interface is automatically deleted on drop. #[derive(Debug)] |