diff --git a/src/route/builder.rs b/src/route/builder.rs index 42a5301..1705ccd 100644 --- a/src/route/builder.rs +++ b/src/route/builder.rs @@ -61,6 +61,7 @@ impl RouteMessageBuilder { } /// Sets the output MPLS encapsulation labels. + #[cfg(not(target_os = "android"))] pub fn output_mpls(mut self, labels: Vec) -> Self { if labels.is_empty() { return self; @@ -442,6 +443,7 @@ impl Default for RouteMessageBuilder { } } +#[cfg(not(target_os = "android"))] impl RouteMessageBuilder { /// Create default RouteMessage with header set to: /// * route: [RouteHeader::RT_TABLE_MAIN] @@ -458,6 +460,7 @@ impl RouteMessageBuilder { builder } + #[cfg(not(target_os = "android"))] /// Sets the destination MPLS label. pub fn label(mut self, label: MplsLabel) -> Self { self.message.header.address_family = AddressFamily::Mpls; @@ -476,7 +479,7 @@ impl RouteMessageBuilder { self } } - +#[cfg(not(target_os = "android"))] impl Default for RouteMessageBuilder { fn default() -> Self { Self::new() @@ -523,6 +526,7 @@ impl RouteNextHopBuilder { } /// Sets the nexthop MPLS encapsulation labels. + #[cfg(not(target_os = "android"))] pub fn mpls(mut self, labels: Vec) -> Self { if labels.is_empty() { return self;