@@ -152,7 +152,7 @@ sockopt_impl!(Both, Broadcast, consts::SOL_SOCKET, consts::SO_BROADCAST, bool);
152
152
sockopt_impl ! ( Both , OobInline , consts:: SOL_SOCKET , consts:: SO_OOBINLINE , bool ) ;
153
153
sockopt_impl ! ( GetOnly , SocketError , consts:: SOL_SOCKET , consts:: SO_ERROR , i32 ) ;
154
154
sockopt_impl ! ( Both , KeepAlive , consts:: SOL_SOCKET , consts:: SO_KEEPALIVE , bool ) ;
155
- #[ cfg( target_os = "linux" ) ]
155
+ #[ cfg( all ( target_os = "linux" , not ( target_arch= "arm" ) ) ) ]
156
156
sockopt_impl ! ( GetOnly , PeerCredentials , consts:: SOL_SOCKET , consts:: SO_PEERCRED , super :: ucred) ;
157
157
#[ cfg( any( target_os = "macos" ,
158
158
target_os = "ios" ) ) ]
@@ -167,7 +167,7 @@ sockopt_impl!(Both, RcvBuf, consts::SOL_SOCKET, consts::SO_RCVBUF, usize);
167
167
sockopt_impl ! ( Both , SndBuf , consts:: SOL_SOCKET , consts:: SO_SNDBUF , usize ) ;
168
168
#[ cfg( target_os = "linux" ) ]
169
169
sockopt_impl ! ( SetOnly , RcvBufForce , consts:: SOL_SOCKET , consts:: SO_RCVBUFFORCE , usize ) ;
170
- #[ cfg( target_os = "linux" ) ]
170
+ #[ cfg( all ( target_os = "linux" , not ( target_arch= "arm" ) ) ) ]
171
171
sockopt_impl ! ( SetOnly , SndBufForce , consts:: SOL_SOCKET , consts:: SO_SNDBUFFORCE , usize ) ;
172
172
sockopt_impl ! ( GetOnly , SockType , consts:: SOL_SOCKET , consts:: SO_TYPE , super :: SockType ) ;
173
173
#[ cfg( any( target_os = "freebsd" ,
0 commit comments