소스 검색

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,