@@ -828,6 +828,8 @@ pub fn mkstemp<P: ?Sized + NixPath>(template: &P) -> Result<(RawFd, PathBuf)> {
828
828
#[ derive( Clone , Copy , Debug , Eq , Hash , PartialEq ) ]
829
829
#[ repr( i32 ) ]
830
830
pub enum PathconfVar {
831
+ #[ cfg( any( target_os = "dragonfly" , target_os = "freebsd" , target_os = "linux" ,
832
+ target_os = "netbsd" , target_os = "openbsd" ) ) ]
831
833
FILESIZEBITS = libc:: _PC_FILESIZEBITS,
832
834
LINK_MAX = libc:: _PC_LINK_MAX,
833
835
MAX_CANON = libc:: _PC_MAX_CANON,
@@ -1016,6 +1018,9 @@ _POSIX_RAW_SOCKETS = libc::_SC_RAW_SOCKETS,
1016
1018
target_os="linux" , target_os = "macos" , target_os="netbsd" ,
1017
1019
target_os="openbsd" ) ) ]
1018
1020
_POSIX_READER_WRITER_LOCKS = libc:: _SC_READER_WRITER_LOCKS,
1021
+ #[ cfg( any( target_os = "android" , target_os="dragonfly" , target_os="freebsd" ,
1022
+ target_os = "ios" , target_os="linux" , target_os = "macos" ,
1023
+ target_os = "openbsd" ) ) ]
1019
1024
_POSIX_REALTIME_SIGNALS = libc:: _SC_REALTIME_SIGNALS,
1020
1025
#[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
1021
1026
target_os="linux" , target_os = "macos" , target_os="netbsd" ,
@@ -1162,6 +1167,9 @@ SEM_NSEMS_MAX = libc::_SC_SEM_NSEMS_MAX,
1162
1167
target_os = "ios" , target_os="linux" , target_os = "macos" ,
1163
1168
target_os="openbsd" ) ) ]
1164
1169
SEM_VALUE_MAX = libc:: _SC_SEM_VALUE_MAX,
1170
+ #[ cfg( any( target_os = "android" , target_os="dragonfly" , target_os="freebsd" ,
1171
+ target_os = "ios" , target_os="linux" , target_os = "macos" ,
1172
+ target_os = "openbsd" ) ) ]
1165
1173
SIGQUEUE_MAX = libc:: _SC_SIGQUEUE_MAX,
1166
1174
STREAM_MAX = libc:: _SC_STREAM_MAX,
1167
1175
#[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
0 commit comments