@@ -567,7 +567,7 @@ extern {
567
567
#[ cfg_attr( target_os = "macos" , link_name = "fstat$INODE64" ) ]
568
568
#[ cfg_attr( target_os = "netbsd" , link_name = "__fstat50" ) ]
569
569
#[ cfg_attr(
570
- all( target_os = "freebsd" , freebsd11) ,
570
+ all( target_os = "freebsd" , any ( freebsd11, freebsd10 ) ) ,
571
571
link_name = "fstat@FBSD_1.0"
572
572
) ]
573
573
pub fn fstat ( fildes : :: c_int , buf : * mut stat ) -> :: c_int ;
@@ -577,7 +577,7 @@ extern {
577
577
#[ cfg_attr( target_os = "macos" , link_name = "stat$INODE64" ) ]
578
578
#[ cfg_attr( target_os = "netbsd" , link_name = "__stat50" ) ]
579
579
#[ cfg_attr(
580
- all( target_os = "freebsd" , freebsd11) ,
580
+ all( target_os = "freebsd" , any ( freebsd11, freebsd10 ) ) ,
581
581
link_name = "stat@FBSD_1.0"
582
582
) ]
583
583
pub fn stat ( path : * const c_char , buf : * mut stat ) -> :: c_int ;
@@ -608,7 +608,7 @@ extern {
608
608
#[ cfg_attr( target_os = "macos" , link_name = "readdir$INODE64" ) ]
609
609
#[ cfg_attr( target_os = "netbsd" , link_name = "__readdir30" ) ]
610
610
#[ cfg_attr(
611
- all( target_os = "freebsd" , freebsd11) ,
611
+ all( target_os = "freebsd" , any ( freebsd11, freebsd10 ) ) ,
612
612
link_name = "readdir@FBSD_1.0"
613
613
) ]
614
614
pub fn readdir ( dirp : * mut :: DIR ) -> * mut :: dirent ;
@@ -631,7 +631,7 @@ extern {
631
631
flags : :: c_int ) -> :: c_int ;
632
632
#[ cfg_attr( target_os = "macos" , link_name = "fstatat$INODE64" ) ]
633
633
#[ cfg_attr(
634
- all( target_os = "freebsd" , freebsd11) ,
634
+ all( target_os = "freebsd" , any ( freebsd11, freebsd10 ) ) ,
635
635
link_name = "fstatat@FBSD_1.1"
636
636
) ]
637
637
pub fn fstatat ( dirfd : :: c_int , pathname : * const :: c_char ,
@@ -786,7 +786,7 @@ extern {
786
786
#[ cfg_attr( target_os = "macos" , link_name = "lstat$INODE64" ) ]
787
787
#[ cfg_attr( target_os = "netbsd" , link_name = "__lstat50" ) ]
788
788
#[ cfg_attr(
789
- all( target_os = "freebsd" , freebsd11) ,
789
+ all( target_os = "freebsd" , any ( freebsd11, freebsd10 ) ) ,
790
790
link_name = "lstat@FBSD_1.0"
791
791
) ]
792
792
pub fn lstat ( path : * const c_char , buf : * mut stat ) -> :: c_int ;
@@ -962,7 +962,7 @@ extern {
962
962
963
963
#[ cfg_attr( target_os = "netbsd" , link_name = "__mknod50" ) ]
964
964
#[ cfg_attr(
965
- all( target_os = "freebsd" , freebsd11) ,
965
+ all( target_os = "freebsd" , any ( freebsd11, freebsd10 ) ) ,
966
966
link_name = "mknod@FBSD_1.0"
967
967
) ]
968
968
pub fn mknod ( pathname : * const :: c_char , mode : :: mode_t ,
@@ -1126,7 +1126,7 @@ cfg_if! {
1126
1126
#[ cfg_attr( target_os = "macos" , link_name = "readdir_r$INODE64" ) ]
1127
1127
#[ cfg_attr( target_os = "netbsd" , link_name = "__readdir_r30" ) ]
1128
1128
#[ cfg_attr(
1129
- all( target_os = "freebsd" , freebsd11) ,
1129
+ all( target_os = "freebsd" , any ( freebsd11, freebsd10 ) ) ,
1130
1130
link_name = "readdir_r@FBSD_1.0"
1131
1131
) ]
1132
1132
/// The 64-bit libc on Solaris and illumos only has readdir_r. If a
0 commit comments