From ffce413217d510058431cd75a9f65e4e0e7179de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Mon, 4 Apr 2022 23:00:07 +0200 Subject: [PATCH] aquatic_common: fix build error with aquatic_udp --- aquatic_common/src/cpu_pinning.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aquatic_common/src/cpu_pinning.rs b/aquatic_common/src/cpu_pinning.rs index 1e7bccc..ffb1019 100644 --- a/aquatic_common/src/cpu_pinning.rs +++ b/aquatic_common/src/cpu_pinning.rs @@ -35,6 +35,7 @@ impl Default for HyperThreadMapping { pub trait CpuPinningConfig { fn active(&self) -> bool; fn mode(&self) -> CpuPinningMode; + #[cfg(feature = "with-glommio")] fn hyperthread(&self) -> HyperThreadMapping; fn core_offset(&self) -> usize; } @@ -75,6 +76,7 @@ pub mod mod_name { fn mode(&self) -> CpuPinningMode { self.mode } + #[cfg(feature = "with-glommio")] fn hyperthread(&self) -> HyperThreadMapping { self.hyperthread }