@@ -166,14 +166,11 @@ sockopt_impl!(Both, TcpKeepAlive, libc::IPPROTO_TCP, libc::TCP_KEEPALIVE, u32);
166
166
sockopt_impl ! ( Both , TcpKeepIdle , libc:: IPPROTO_TCP , libc:: TCP_KEEPIDLE , u32 ) ;
167
167
sockopt_impl ! ( Both , RcvBuf , libc:: SOL_SOCKET , libc:: SO_RCVBUF , usize ) ;
168
168
sockopt_impl ! ( Both , SndBuf , libc:: SOL_SOCKET , libc:: SO_SNDBUF , usize ) ;
169
- #[ cfg( target_os = "linux" ) ]
169
+ #[ cfg( any ( target_os = "linux" , target_os = "android" ) ) ]
170
170
sockopt_impl ! ( SetOnly , RcvBufForce , libc:: SOL_SOCKET , libc:: SO_RCVBUFFORCE , usize ) ;
171
- #[ cfg( all ( target_os = "linux" , not ( target_arch= "arm" ) ) ) ]
171
+ #[ cfg( any ( target_os = "linux" , target_os = "android" ) ) ]
172
172
sockopt_impl ! ( SetOnly , SndBufForce , libc:: SOL_SOCKET , libc:: SO_SNDBUFFORCE , usize ) ;
173
173
sockopt_impl ! ( GetOnly , SockType , libc:: SOL_SOCKET , libc:: SO_TYPE , super :: SockType ) ;
174
- #[ cfg( any( target_os = "freebsd" ,
175
- target_os = "linux" ,
176
- target_os = "nacl" ) ) ]
177
174
sockopt_impl ! ( GetOnly , AcceptConn , libc:: SOL_SOCKET , libc:: SO_ACCEPTCONN , bool ) ;
178
175
#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
179
176
sockopt_impl ! ( GetOnly , OriginalDst , libc:: SOL_IP , libc:: SO_ORIGINAL_DST , sockaddr_in) ;
0 commit comments