@@ -109,7 +109,12 @@ pub(super) use libc::fallocate64 as fallocate;
109109#[ cfg( not( any( target_arch = "aarch64" , target_arch = "riscv64" ) ) ) ]
110110#[ cfg( any( linux_like, target_os = "aix" ) ) ]
111111pub ( super ) use libc:: open64 as open;
112- #[ cfg( any( linux_kernel, target_os = "aix" , target_os = "l4re" ) ) ]
112+ #[ cfg( any(
113+ linux_kernel,
114+ target_os = "aix" ,
115+ target_os = "hurd" ,
116+ target_os = "l4re"
117+ ) ) ]
113118pub ( super ) use libc:: posix_fallocate64 as posix_fallocate;
114119#[ cfg( any( all( linux_like, not( target_os = "android" ) ) , target_os = "aix" ) ) ]
115120pub ( super ) use libc:: { blkcnt64_t as blkcnt_t, rlim64_t as rlim_t} ;
@@ -123,7 +128,7 @@ pub(super) use libc::{
123128 rlimit64 as rlimit, setrlimit64 as setrlimit, statfs64 as statfs, statvfs64 as statvfs,
124129 RLIM_INFINITY ,
125130} ;
126- #[ cfg( linux_like) ]
131+ #[ cfg( any ( linux_like, target_os = "hurd" ) ) ]
127132pub ( super ) use libc:: {
128133 fstat64 as fstat, fstatat64 as fstatat, fstatfs64 as fstatfs, fstatvfs64 as fstatvfs,
129134 ftruncate64 as ftruncate, getrlimit64 as getrlimit, ino64_t as ino_t, lseek64 as lseek,
@@ -144,11 +149,16 @@ pub(super) use libc::{
144149 target_arch = "mips64r6"
145150 )
146151) ) ) ]
147- #[ cfg( any( linux_like, target_os = "aix" ) ) ]
152+ #[ cfg( any( linux_like, target_os = "aix" , target_os = "hurd" ) ) ]
148153pub ( super ) use libc:: { lstat64 as lstat, stat64 as stat} ;
149- #[ cfg( any( linux_kernel, target_os = "aix" , target_os = "emscripten" ) ) ]
154+ #[ cfg( any(
155+ linux_kernel,
156+ target_os = "aix" ,
157+ target_os = "hurd" ,
158+ target_os = "emscripten"
159+ ) ) ]
150160pub ( super ) use libc:: { pread64 as pread, pwrite64 as pwrite} ;
151- #[ cfg( any( target_os = "linux" , target_os = "emscripten" ) ) ]
161+ #[ cfg( any( target_os = "linux" , target_os = "hurd" , target_os = " emscripten") ) ]
152162pub ( super ) use libc:: { preadv64 as preadv, pwritev64 as pwritev} ;
153163
154164#[ cfg( all( target_os = "linux" , target_env = "gnu" ) ) ]
0 commit comments