@@ -580,14 +580,14 @@ extern {
580
580
581
581
#[ cfg_attr( target_os = "macos" , link_name = "fstat$INODE64" ) ]
582
582
#[ cfg_attr( target_os = "netbsd" , link_name = "__fstat50" ) ]
583
- #[ cfg_attr( target_os = "freebsd" , link_name = "fstat@FBSD_1.0" ) ]
583
+ #[ cfg_attr( all ( target_os = "freebsd" , not ( freebsd12 ) ) , link_name = "fstat@FBSD_1.0" ) ]
584
584
pub fn fstat ( fildes : :: c_int , buf : * mut stat ) -> :: c_int ;
585
585
586
586
pub fn mkdir ( path : * const c_char , mode : mode_t ) -> :: c_int ;
587
587
588
588
#[ cfg_attr( target_os = "macos" , link_name = "stat$INODE64" ) ]
589
589
#[ cfg_attr( target_os = "netbsd" , link_name = "__stat50" ) ]
590
- #[ cfg_attr( target_os = "freebsd" , link_name = "stat@FBSD_1.0" ) ]
590
+ #[ cfg_attr( all ( target_os = "freebsd" , not ( freebsd12 ) ) , link_name = "stat@FBSD_1.0" ) ]
591
591
pub fn stat ( path : * const c_char , buf : * mut stat ) -> :: c_int ;
592
592
593
593
pub fn pclose ( stream : * mut :: FILE ) -> :: c_int ;
@@ -621,11 +621,11 @@ extern {
621
621
622
622
#[ cfg_attr( target_os = "macos" , link_name = "readdir$INODE64" ) ]
623
623
#[ cfg_attr( target_os = "netbsd" , link_name = "__readdir30" ) ]
624
- #[ cfg_attr( target_os = "freebsd" , link_name = "readdir@FBSD_1.0" ) ]
624
+ #[ cfg_attr( all ( target_os = "freebsd" , not ( freebsd12 ) ) , link_name = "readdir@FBSD_1.0" ) ]
625
625
pub fn readdir ( dirp : * mut :: DIR ) -> * mut :: dirent ;
626
626
#[ cfg_attr( target_os = "macos" , link_name = "readdir_r$INODE64" ) ]
627
627
#[ cfg_attr( target_os = "netbsd" , link_name = "__readdir_r30" ) ]
628
- #[ cfg_attr( target_os = "freebsd" , link_name = "readdir_r@FBSD_1.0" ) ]
628
+ #[ cfg_attr( all ( target_os = "freebsd" , not ( freebsd12 ) ) , link_name = "readdir_r@FBSD_1.0" ) ]
629
629
/// The 64-bit libc on Solaris and illumos only has readdir_r. If a
630
630
/// 32-bit Solaris or illumos target is ever created, it should use
631
631
/// __posix_readdir_r. See libc(3LIB) on Solaris or illumos:
@@ -654,7 +654,7 @@ extern {
654
654
owner : :: uid_t , group : :: gid_t ,
655
655
flags : :: c_int ) -> :: c_int ;
656
656
#[ cfg_attr( target_os = "macos" , link_name = "fstatat$INODE64" ) ]
657
- #[ cfg_attr( target_os = "freebsd" , link_name = "fstatat@FBSD_1.1" ) ]
657
+ #[ cfg_attr( all ( target_os = "freebsd" , not ( freebsd12 ) ) , link_name = "fstatat@FBSD_1.1" ) ]
658
658
pub fn fstatat ( dirfd : :: c_int , pathname : * const :: c_char ,
659
659
buf : * mut stat , flags : :: c_int ) -> :: c_int ;
660
660
pub fn linkat ( olddirfd : :: c_int , oldpath : * const :: c_char ,
@@ -809,7 +809,7 @@ extern {
809
809
810
810
#[ cfg_attr( target_os = "macos" , link_name = "lstat$INODE64" ) ]
811
811
#[ cfg_attr( target_os = "netbsd" , link_name = "__lstat50" ) ]
812
- #[ cfg_attr( target_os = "freebsd" , link_name = "lstat@FBSD_1.0" ) ]
812
+ #[ cfg_attr( all ( target_os = "freebsd" , not ( freebsd12 ) ) , link_name = "lstat@FBSD_1.0" ) ]
813
813
pub fn lstat ( path : * const c_char , buf : * mut stat ) -> :: c_int ;
814
814
815
815
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
@@ -989,7 +989,7 @@ extern {
989
989
pub fn difftime ( time1 : time_t , time0 : time_t ) -> :: c_double ;
990
990
991
991
#[ cfg_attr( target_os = "netbsd" , link_name = "__mknod50" ) ]
992
- #[ cfg_attr( target_os = "freebsd" , link_name = "mknod@FBSD_1.0" ) ]
992
+ #[ cfg_attr( all ( target_os = "freebsd" , not ( freebsd12 ) ) , link_name = "mknod@FBSD_1.0" ) ]
993
993
pub fn mknod ( pathname : * const :: c_char , mode : :: mode_t ,
994
994
dev : :: dev_t ) -> :: c_int ;
995
995
pub fn gethostname ( name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
0 commit comments