Переглянути джерело

Add conditional compile attr to `is_ingress`

Closes: #216
Approved by: whitequark
Ole Martin Ruud 7 роки тому
батько
коміт
3fb0c22fd4
1 змінених файлів з 1 додано та 0 видалено
  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,