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