@@ -596,11 +596,13 @@ extern "C" {
596
596
pub fn getchar_unlocked ( ) -> :: c_int ;
597
597
pub fn putchar_unlocked ( c : :: c_int ) -> :: c_int ;
598
598
599
- #[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
599
+ #[ cfg( not( all( libc_cfg_target_vendor, target_arch = "powerpc" ,
600
+ target_vendor = "nintendo" ) ) ) ]
600
601
#[ cfg_attr( target_os = "netbsd" , link_name = "__socket30" ) ]
601
602
#[ cfg_attr( target_os = "illumos" , link_name = "__xnet_socket" ) ]
602
603
pub fn socket ( domain : :: c_int , ty : :: c_int , protocol : :: c_int ) -> :: c_int ;
603
- #[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
604
+ #[ cfg( not( all( libc_cfg_target_vendor, target_arch = "powerpc" ,
605
+ target_vendor = "nintendo" ) ) ) ]
604
606
#[ cfg_attr(
605
607
all( target_os = "macos" , target_arch = "x86" ) ,
606
608
link_name = "connect$UNIX2003"
@@ -616,7 +618,8 @@ extern "C" {
616
618
link_name = "listen$UNIX2003"
617
619
) ]
618
620
pub fn listen ( socket : :: c_int , backlog : :: c_int ) -> :: c_int ;
619
- #[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
621
+ #[ cfg( not( all( libc_cfg_target_vendor, target_arch = "powerpc" ,
622
+ target_vendor = "nintendo" ) ) ) ]
620
623
#[ cfg_attr(
621
624
all( target_os = "macos" , target_arch = "x86" ) ,
622
625
link_name = "accept$UNIX2003"
@@ -626,7 +629,8 @@ extern "C" {
626
629
address : * mut sockaddr ,
627
630
address_len : * mut socklen_t ,
628
631
) -> :: c_int ;
629
- #[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
632
+ #[ cfg( not( all( libc_cfg_target_vendor, target_arch = "powerpc" ,
633
+ target_vendor = "nintendo" ) ) ) ]
630
634
#[ cfg_attr(
631
635
all( target_os = "macos" , target_arch = "x86" ) ,
632
636
link_name = "getpeername$UNIX2003"
@@ -636,7 +640,8 @@ extern "C" {
636
640
address : * mut sockaddr ,
637
641
address_len : * mut socklen_t ,
638
642
) -> :: c_int ;
639
- #[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
643
+ #[ cfg( not( all( libc_cfg_target_vendor, target_arch = "powerpc" ,
644
+ target_vendor = "nintendo" ) ) ) ]
640
645
#[ cfg_attr(
641
646
all( target_os = "macos" , target_arch = "x86" ) ,
642
647
link_name = "getsockname$UNIX2003"
@@ -664,7 +669,8 @@ extern "C" {
664
669
protocol : :: c_int ,
665
670
socket_vector : * mut :: c_int ,
666
671
) -> :: c_int ;
667
- #[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
672
+ #[ cfg( not( all( libc_cfg_target_vendor, target_arch = "powerpc" ,
673
+ target_vendor = "nintendo" ) ) ) ]
668
674
#[ cfg_attr(
669
675
all( target_os = "macos" , target_arch = "x86" ) ,
670
676
link_name = "sendto$UNIX2003"
@@ -1240,15 +1246,17 @@ extern "C" {
1240
1246
pub fn dlclose ( handle : * mut :: c_void ) -> :: c_int ;
1241
1247
pub fn dladdr ( addr : * const :: c_void , info : * mut Dl_info ) -> :: c_int ;
1242
1248
1243
- #[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
1249
+ #[ cfg( not( all( libc_cfg_target_vendor, target_arch = "powerpc" ,
1250
+ target_vendor = "nintendo" ) ) ) ]
1244
1251
#[ cfg_attr( target_os = "illumos" , link_name = "__xnet_getaddrinfo" ) ]
1245
1252
pub fn getaddrinfo (
1246
1253
node : * const c_char ,
1247
1254
service : * const c_char ,
1248
1255
hints : * const addrinfo ,
1249
1256
res : * mut * mut addrinfo ,
1250
1257
) -> :: c_int ;
1251
- #[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
1258
+ #[ cfg( not( all( libc_cfg_target_vendor, target_arch = "powerpc" ,
1259
+ target_vendor = "nintendo" ) ) ) ]
1252
1260
pub fn freeaddrinfo ( res : * mut addrinfo ) ;
1253
1261
pub fn gai_strerror ( errcode : :: c_int ) -> * const :: c_char ;
1254
1262
#[ cfg_attr(
0 commit comments