diff options
author | Seungha Yang <seungha@centricular.com> | 2020-09-30 19:33:34 +0300 |
---|---|---|
committer | Seungha Yang <seungha@centricular.com> | 2020-09-30 19:40:08 +0300 |
commit | 5cba2b002b50d61eed4ba977081ad28be0b58ddb (patch) | |
tree | 76ed3c83bad36a7f7d252f86082353f8792c8bf2 /generic | |
parent | 643544876be5b88b6cff4c1758c7af77e6992f4a (diff) |
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
Diffstat (limited to 'generic')
-rw-r--r-- | generic/threadshare/src/socket.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/threadshare/src/socket.rs b/generic/threadshare/src/socket.rs index bffd9081d..dca8dc982 100644 --- a/generic/threadshare/src/socket.rs +++ b/generic/threadshare/src/socket.rs @@ -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(()) } |