File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1464,6 +1464,8 @@ s_no_extra_traits! {
1464
1464
pub ifr_name: [ :: c_char; :: IFNAMSIZ ] ,
1465
1465
#[ cfg( libc_union) ]
1466
1466
pub ifr_ifru: __c_anonymous_ifr_ifru,
1467
+ #[ cfg( not( libc_union) ) ]
1468
+ pub ifr_ifru: :: sockaddr,
1467
1469
}
1468
1470
}
1469
1471
@@ -2977,6 +2979,7 @@ cfg_if! {
2977
2979
impl PartialEq for ifreq {
2978
2980
fn eq( & self , other: & ifreq) -> bool {
2979
2981
self . ifr_name == other. ifr_name
2982
+ && self . ifr_ifru == other. ifr_ifru
2980
2983
}
2981
2984
}
2982
2985
@@ -2986,14 +2989,14 @@ cfg_if! {
2986
2989
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
2987
2990
f. debug_struct( "ifreq" )
2988
2991
. field( "ifr_name" , & self . ifr_name)
2992
+ . field( "ifr_ifru" , & self . ifr_ifru)
2989
2993
. finish( )
2990
2994
}
2991
2995
}
2992
2996
2993
2997
impl :: hash:: Hash for ifreq {
2994
2998
fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
2995
2999
self . ifr_name. hash( state) ;
2996
- #[ cfg( libc_union) ]
2997
3000
self . ifr_ifru. hash( state) ;
2998
3001
}
2999
3002
}
You can’t perform that action at this time.
0 commit comments