Commit 5cba2b00 authored by Seungha Yang's avatar Seungha Yang 🐑

threadshare/socket: Fix build error on Windows

error[E0412]: cannot find type `Error` in this scope
   --> generic\threadshare\src\socket.rs:237:56
    |
237 |     pub fn set_tos(&self, qos_dscp: i32) -> Result<(), Error> {
    |                                                        ^^^^^ not found in this scope
parent 64354487
Pipeline #209405 passed with stages
in 16 minutes and 23 seconds
......@@ -217,7 +217,7 @@ impl GioSocketWrapper {
}
#[cfg(unix)]
pub fn set_tos(&self, qos_dscp: i32) -> Result<(), glib::error::Error> {
pub fn set_tos(&self, qos_dscp: i32) -> Result<(), glib::Error> {
use libc::{IPPROTO_IP, IPPROTO_IPV6, IPV6_TCLASS, IP_TOS};
let tos = (qos_dscp & 0x3f) << 2;
......@@ -234,7 +234,7 @@ impl GioSocketWrapper {
}
#[cfg(not(unix))]
pub fn set_tos(&self, qos_dscp: i32) -> Result<(), Error> {
pub fn set_tos(&self, qos_dscp: i32) -> Result<(), glib::Error> {
Ok(())
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment