File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ pub(crate) fn set_errno(value: i32) {
4444 unsafe {
4545 * _errno ( ) = value;
4646 }
47- #[ cfg( all( unix, not( any( target_os = "linux" , target_os = "android" , target_os = "macos" ) ) ) ) ]
47+ #[ cfg( all(
48+ unix,
49+ not( any( target_os = "linux" , target_os = "android" , target_os = "macos" ) )
50+ ) ) ]
4851 unsafe {
4952 // FreeBSD, NetBSD, OpenBSD, etc. use __error()
5053 * libc:: __error ( ) = value;
@@ -73,7 +76,10 @@ pub(crate) fn get_errno() -> i32 {
7376 unsafe {
7477 * _errno ( )
7578 }
76- #[ cfg( all( unix, not( any( target_os = "linux" , target_os = "android" , target_os = "macos" ) ) ) ) ]
79+ #[ cfg( all(
80+ unix,
81+ not( any( target_os = "linux" , target_os = "android" , target_os = "macos" ) )
82+ ) ) ]
7783 unsafe {
7884 // FreeBSD, NetBSD, OpenBSD, etc. use __error()
7985 * libc:: __error ( )
You can’t perform that action at this time.
0 commit comments