@@ -751,14 +751,16 @@ pub enum Whence {
751
751
/// Specify an offset relative to the next location in the file greater than or
752
752
/// equal to offset that contains some data. If offset points to
753
753
/// some data, then the file offset is set to offset.
754
- #[ cfg( any( target_os = "dragonfly" , target_os = "freebsd" , target_os = "linux" ) ) ]
754
+ #[ cfg( any( target_os = "dragonfly" , target_os = "freebsd" ,
755
+ all( target_os = "linux" , not( any( target_env = "musl" , target_arch = "mips" ) ) ) ) ) ]
755
756
SeekData = libc:: SEEK_DATA ,
756
757
/// Specify an offset relative to the next hole in the file greater than
757
758
/// or equal to offset. If offset points into the middle of a hole, then
758
759
/// the file offset should be set to offset. If there is no hole past offset,
759
760
/// then the file offset should be adjusted to the end of the file (i.e., there
760
761
/// is an implicit hole at the end of any file).
761
- #[ cfg( any( target_os = "dragonfly" , target_os = "freebsd" , target_os = "linux" ) ) ]
762
+ #[ cfg( any( target_os = "dragonfly" , target_os = "freebsd" ,
763
+ all( target_os = "linux" , not( any( target_env = "musl" , target_arch = "mips" ) ) ) ) ) ]
762
764
SeekHole = libc:: SEEK_HOLE
763
765
}
764
766
0 commit comments