File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ pub struct PlatformMemory {
283283 pub swonly : ByteSize ,
284284}
285285
286- #[ cfg( target_os = "macos " ) ]
286+ #[ cfg( target_vendor = "apple " ) ]
287287#[ cfg_attr(
288288 feature = "serde" ,
289289 derive( Serialize , Deserialize ) ,
@@ -339,7 +339,7 @@ pub struct Memory {
339339) ) ]
340340pub type PlatformSwap = PlatformMemory ;
341341
342- #[ cfg( any( target_os = "macos " , target_os = "freebsd" ) ) ]
342+ #[ cfg( any( target_vendor = "apple " , target_os = "freebsd" ) ) ]
343343#[ cfg_attr(
344344 feature = "serde" ,
345345 derive( Serialize , Deserialize ) ,
Original file line number Diff line number Diff line change 66 target_os = "freebsd" ,
77 target_os = "openbsd" ,
88 target_os = "netbsd" ,
9- target_os = "macos "
9+ target_vendor = "apple "
1010 ) ,
1111 macro_use
1212) ]
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub mod unix;
1414 target_os = "freebsd" ,
1515 target_os = "openbsd" ,
1616 target_os = "netbsd" ,
17- target_os = "macos "
17+ target_vendor = "apple "
1818) ) ]
1919pub mod bsd;
2020
@@ -33,9 +33,9 @@ pub mod netbsd;
3333#[ cfg( target_os = "netbsd" ) ]
3434pub use self :: netbsd:: PlatformImpl ;
3535
36- #[ cfg( target_os = "macos " ) ]
36+ #[ cfg( target_vendor = "apple " ) ]
3737pub mod macos;
38- #[ cfg( target_os = "macos " ) ]
38+ #[ cfg( target_vendor = "apple " ) ]
3939pub use self :: macos:: PlatformImpl ;
4040
4141#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
You can’t perform that action at this time.
0 commit comments