@@ -685,7 +685,10 @@ extern "C" {
685685 ) ]
686686 pub fn fchmod ( fd : :: c_int , mode : mode_t ) -> :: c_int ;
687687
688- #[ cfg_attr( target_os = "macos" , link_name = "fstat$INODE64" ) ]
688+ #[ cfg_attr(
689+ all( target_os = "macos" , not( target_arch = "aarch64" ) ) ,
690+ link_name = "fstat$INODE64"
691+ ) ]
689692 #[ cfg_attr( target_os = "netbsd" , link_name = "__fstat50" ) ]
690693 #[ cfg_attr(
691694 all( target_os = "freebsd" , any( freebsd11, freebsd10) ) ,
@@ -695,7 +698,10 @@ extern "C" {
695698
696699 pub fn mkdir ( path : * const c_char , mode : mode_t ) -> :: c_int ;
697700
698- #[ cfg_attr( target_os = "macos" , link_name = "stat$INODE64" ) ]
701+ #[ cfg_attr(
702+ all( target_os = "macos" , not( target_arch = "aarch64" ) ) ,
703+ link_name = "stat$INODE64"
704+ ) ]
699705 #[ cfg_attr( target_os = "netbsd" , link_name = "__stat50" ) ]
700706 #[ cfg_attr(
701707 all( target_os = "freebsd" , any( freebsd11, freebsd10) ) ,
@@ -738,7 +744,10 @@ extern "C" {
738744 #[ cfg_attr( target_os = "netbsd" , link_name = "__opendir30" ) ]
739745 pub fn opendir ( dirname : * const c_char ) -> * mut :: DIR ;
740746
741- #[ cfg_attr( target_os = "macos" , link_name = "readdir$INODE64" ) ]
747+ #[ cfg_attr(
748+ all( target_os = "macos" , not( target_arch = "aarch64" ) ) ,
749+ link_name = "readdir$INODE64"
750+ ) ]
742751 #[ cfg_attr( target_os = "netbsd" , link_name = "__readdir30" ) ]
743752 #[ cfg_attr(
744753 all( target_os = "freebsd" , any( freebsd11, freebsd10) ) ,
@@ -774,7 +783,10 @@ extern "C" {
774783 group : :: gid_t ,
775784 flags : :: c_int ,
776785 ) -> :: c_int ;
777- #[ cfg_attr( target_os = "macos" , link_name = "fstatat$INODE64" ) ]
786+ #[ cfg_attr(
787+ all( target_os = "macos" , not( target_arch = "aarch64" ) ) ,
788+ link_name = "fstatat$INODE64"
789+ ) ]
778790 #[ cfg_attr(
779791 all( target_os = "freebsd" , any( freebsd11, freebsd10) ) ,
780792 link_name = "fstatat@FBSD_1.1"
@@ -1007,7 +1019,10 @@ extern "C" {
10071019 ifname : * mut :: c_char ,
10081020 ) -> * mut :: c_char ;
10091021
1010- #[ cfg_attr( target_os = "macos" , link_name = "lstat$INODE64" ) ]
1022+ #[ cfg_attr(
1023+ all( target_os = "macos" , not( target_arch = "aarch64" ) ) ,
1024+ link_name = "lstat$INODE64"
1025+ ) ]
10111026 #[ cfg_attr( target_os = "netbsd" , link_name = "__lstat50" ) ]
10121027 #[ cfg_attr(
10131028 all( target_os = "freebsd" , any( freebsd11, freebsd10) ) ,
@@ -1483,7 +1498,8 @@ cfg_if! {
14831498 link_name = "fdopendir$INODE64$UNIX2003" ) ]
14841499 pub fn fdopendir( fd: :: c_int) -> * mut :: DIR ;
14851500
1486- #[ cfg_attr( target_os = "macos" , link_name = "readdir_r$INODE64" ) ]
1501+ #[ cfg_attr( all( target_os = "macos" , not( target_arch = "aarch64" ) ) ,
1502+ link_name = "readdir_r$INODE64" ) ]
14871503 #[ cfg_attr( target_os = "netbsd" , link_name = "__readdir_r30" ) ]
14881504 #[ cfg_attr(
14891505 all( target_os = "freebsd" , any( freebsd11, freebsd10) ) ,
0 commit comments