Browse Source

Add conditional compile attr to `is_ingress`

Closes: #216
Approved by: whitequark
Ole Martin Ruud 7 năm trước cách đây
mục cha
commit
3fb0c22fd4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/socket/mod.rs

+ 1 - 0
src/socket/mod.rs

@@ -67,6 +67,7 @@ pub(crate) enum PollAt {
 }
 
 impl PollAt {
+    #[cfg(feature = "socket-tcp")]
     fn is_ingress(&self) -> bool {
         match self {
             &PollAt::Ingress => true,