File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ targets = [
28
28
]
29
29
30
30
[dependencies ]
31
- libc = { version = " 0.2.147 " , features = [" extra_traits" ] }
31
+ libc = { version = " 0.2.148 " , features = [" extra_traits" ] }
32
32
bitflags = " 2.3.1"
33
33
cfg-if = " 1.0"
34
34
pin-utils = { version = " 0.1.0" , optional = true }
Original file line number Diff line number Diff line change @@ -878,13 +878,6 @@ pub struct Timestamps {
878
878
pub hw_raw: TimeSpec ,
879
879
}
880
880
881
- // Defined in `linux/tls.h`
882
- #[ cfg( all( target_os = "linux" ) ) ]
883
- const TLS_GET_RECORD_TYPE : c_int = 2 ;
884
-
885
- #[ cfg( all( target_os = "linux" ) ) ]
886
- const SOL_TLS : c_int = 282 ;
887
-
888
881
impl ControlMessageOwned {
889
882
/// Decodes a `ControlMessageOwned` from raw bytes.
890
883
///
@@ -1028,7 +1021,7 @@ impl ControlMessageOwned {
1028
1021
ControlMessageOwned :: Ipv6OrigDstAddr ( dl)
1029
1022
} ,
1030
1023
#[ cfg( all( target_os = "linux" ) ) ]
1031
- ( SOL_TLS , TLS_GET_RECORD_TYPE ) => {
1024
+ ( libc :: SOL_TLS , libc :: TLS_GET_RECORD_TYPE ) => {
1032
1025
let content_type = ptr:: read_unaligned( p as * const u8 ) ;
1033
1026
ControlMessageOwned :: TlsGetRecordType ( content_type)
1034
1027
} ,
You can’t perform that action at this time.
0 commit comments