1- #[ cfg( all( unix, not( mio_unsupported_force_poll_poll) , not( target_os = "vita" ) ) ) ]
1+ #[ cfg( all(
2+ unix,
3+ not( mio_unsupported_force_poll_poll) ,
4+ not( any( target_os = "solaris" , target_os = "vita" ) )
5+ ) ) ]
26use std:: os:: unix:: io:: { AsRawFd , RawFd } ;
37#[ cfg( all( debug_assertions, not( target_os = "wasi" ) ) ) ]
48use std:: sync:: atomic:: { AtomicBool , Ordering } ;
@@ -423,7 +427,11 @@ impl Poll {
423427 }
424428}
425429
426- #[ cfg( all( unix, not( mio_unsupported_force_poll_poll) , not( target_os = "vita" ) ) ) ]
430+ #[ cfg( all(
431+ unix,
432+ not( mio_unsupported_force_poll_poll) ,
433+ not( any( target_os = "solaris" , target_os = "vita" ) )
434+ ) ) ]
427435impl AsRawFd for Poll {
428436 fn as_raw_fd ( & self ) -> RawFd {
429437 self . registry . as_raw_fd ( )
@@ -710,7 +718,11 @@ impl fmt::Debug for Registry {
710718 }
711719}
712720
713- #[ cfg( all( unix, not( mio_unsupported_force_poll_poll) , not( target_os = "vita" ) ) ) ]
721+ #[ cfg( all(
722+ unix,
723+ not( mio_unsupported_force_poll_poll) ,
724+ not( any( target_os = "solaris" , target_os = "vita" ) )
725+ ) ) ]
714726impl AsRawFd for Registry {
715727 fn as_raw_fd ( & self ) -> RawFd {
716728 self . selector . as_raw_fd ( )
@@ -721,7 +733,7 @@ cfg_os_poll! {
721733 #[ cfg( all(
722734 unix,
723735 not( mio_unsupported_force_poll_poll) ,
724- not( target_os = "vita" ) ,
736+ not( any ( target_os = "solaris" , target_os = " vita") ) ,
725737 ) ) ]
726738 #[ test]
727739 pub fn as_raw_fd( ) {
0 commit comments