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 @@ -890,13 +890,6 @@ pub struct Timestamps {
890
890
pub hw_raw: TimeSpec ,
891
891
}
892
892
893
- // Defined in `linux/tls.h`
894
- #[ cfg( all( target_os = "linux" ) ) ]
895
- const TLS_GET_RECORD_TYPE : c_int = 2 ;
896
-
897
- #[ cfg( all( target_os = "linux" ) ) ]
898
- const SOL_TLS : c_int = 282 ;
899
-
900
893
impl ControlMessageOwned {
901
894
/// Decodes a `ControlMessageOwned` from raw bytes.
902
895
///
@@ -1040,7 +1033,7 @@ impl ControlMessageOwned {
1040
1033
ControlMessageOwned :: Ipv6OrigDstAddr ( dl)
1041
1034
} ,
1042
1035
#[ cfg( all( target_os = "linux" ) ) ]
1043
- ( SOL_TLS , TLS_GET_RECORD_TYPE ) => {
1036
+ ( libc :: SOL_TLS , libc :: TLS_GET_RECORD_TYPE ) => {
1044
1037
let content_type = ptr:: read_unaligned( p as * const u8 ) ;
1045
1038
ControlMessageOwned :: TlsGetRecordType ( content_type)
1046
1039
} ,
You can’t perform that action at this time.
0 commit comments