@@ -7,10 +7,7 @@ use libc::{self, c_void, c_int, iovec, socklen_t, size_t,
7
7
CMSG_FIRSTHDR , CMSG_NXTHDR , CMSG_DATA , CMSG_LEN } ;
8
8
use std:: { mem, ptr, slice} ;
9
9
use std:: os:: unix:: io:: RawFd ;
10
- #[ cfg( all( target_os = "linux" , any(
11
- target_arch = "x86_64" ,
12
- target_arch = "aarch64" ,
13
- ) , not( target_env = "musl" ) ) ) ]
10
+ #[ cfg( all( target_os = "linux" ) ) ]
14
11
use crate :: sys:: time:: TimeSpec ;
15
12
use crate :: sys:: time:: TimeVal ;
16
13
use crate :: sys:: uio:: IoVec ;
@@ -562,10 +559,7 @@ pub enum ControlMessageOwned {
562
559
/// Nanoseconds resolution timestamp
563
560
///
564
561
/// [Further reading](https://www.kernel.org/doc/html/latest/networking/timestamping.html)
565
- #[ cfg( all( target_os = "linux" , any(
566
- target_arch = "x86_64" ,
567
- target_arch = "aarch64" ,
568
- ) , not( target_env = "musl" ) ) ) ]
562
+ #[ cfg( all( target_os = "linux" ) ) ]
569
563
ScmTimestampns ( TimeSpec ) ,
570
564
#[ cfg( any(
571
565
target_os = "android" ,
@@ -658,10 +652,7 @@ impl ControlMessageOwned {
658
652
let tv: libc:: timeval = ptr:: read_unaligned ( p as * const _ ) ;
659
653
ControlMessageOwned :: ScmTimestamp ( TimeVal :: from ( tv) )
660
654
} ,
661
- #[ cfg( all( target_os = "linux" , any(
662
- target_arch = "x86_64" ,
663
- target_arch = "aarch64" ,
664
- ) , not( target_env = "musl" ) ) ) ]
655
+ #[ cfg( all( target_os = "linux" ) ) ]
665
656
( libc:: SOL_SOCKET , libc:: SCM_TIMESTAMPNS ) => {
666
657
let ts: libc:: timespec = ptr:: read_unaligned ( p as * const _ ) ;
667
658
ControlMessageOwned :: ScmTimestampns ( TimeSpec :: from ( ts) )
0 commit comments