@@ -590,15 +590,21 @@ extern "C" {
590
590
591
591
#[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
592
592
#[ cfg_attr( target_os = "netbsd" , link_name = "__socket30" ) ]
593
- #[ cfg_attr( target_os = "illumos" , link_name = "__xnet_socket" ) ]
593
+ #[ cfg_attr(
594
+ any( target_os = "illumos" , target_os = "solaris" ) ,
595
+ link_name = "__xnet_socket"
596
+ ) ]
594
597
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_socket" ) ]
595
598
pub fn socket ( domain : :: c_int , ty : :: c_int , protocol : :: c_int ) -> :: c_int ;
596
599
#[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
597
600
#[ cfg_attr(
598
601
all( target_os = "macos" , target_arch = "x86" ) ,
599
602
link_name = "connect$UNIX2003"
600
603
) ]
601
- #[ cfg_attr( target_os = "illumos" , link_name = "__xnet_connect" ) ]
604
+ #[ cfg_attr(
605
+ any( target_os = "illumos" , target_os = "solaris" ) ,
606
+ link_name = "__xnet_connect"
607
+ ) ]
602
608
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_connect" ) ]
603
609
pub fn connect ( socket : :: c_int , address : * const sockaddr , len : socklen_t ) -> :: c_int ;
604
610
#[ cfg_attr(
@@ -648,7 +654,10 @@ extern "C" {
648
654
all( target_os = "macos" , target_arch = "x86" ) ,
649
655
link_name = "socketpair$UNIX2003"
650
656
) ]
651
- #[ cfg_attr( target_os = "illumos" , link_name = "__xnet_socketpair" ) ]
657
+ #[ cfg_attr(
658
+ any( target_os = "illumos" , target_os = "solaris" ) ,
659
+ link_name = "__xnet_socketpair"
660
+ ) ]
652
661
pub fn socketpair (
653
662
domain : :: c_int ,
654
663
type_ : :: c_int ,
@@ -660,7 +669,10 @@ extern "C" {
660
669
all( target_os = "macos" , target_arch = "x86" ) ,
661
670
link_name = "sendto$UNIX2003"
662
671
) ]
663
- #[ cfg_attr( target_os = "illumos" , link_name = "__xnet_sendto" ) ]
672
+ #[ cfg_attr(
673
+ any( target_os = "illumos" , target_os = "solaris" ) ,
674
+ link_name = "__xnet_sendto"
675
+ ) ]
664
676
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_sendto" ) ]
665
677
pub fn sendto (
666
678
socket : :: c_int ,
@@ -1137,7 +1149,10 @@ extern "C" {
1137
1149
pub fn pthread_rwlockattr_init ( attr : * mut pthread_rwlockattr_t ) -> :: c_int ;
1138
1150
pub fn pthread_rwlockattr_destroy ( attr : * mut pthread_rwlockattr_t ) -> :: c_int ;
1139
1151
1140
- #[ cfg_attr( target_os = "illumos" , link_name = "__xnet_getsockopt" ) ]
1152
+ #[ cfg_attr(
1153
+ any( target_os = "illumos" , target_os = "solaris" ) ,
1154
+ link_name = "__xnet_getsockopt"
1155
+ ) ]
1141
1156
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_getsockopt" ) ]
1142
1157
pub fn getsockopt (
1143
1158
sockfd : :: c_int ,
@@ -1156,7 +1171,10 @@ extern "C" {
1156
1171
pub fn dlclose ( handle : * mut :: c_void ) -> :: c_int ;
1157
1172
1158
1173
#[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
1159
- #[ cfg_attr( target_os = "illumos" , link_name = "__xnet_getaddrinfo" ) ]
1174
+ #[ cfg_attr(
1175
+ any( target_os = "illumos" , target_os = "solaris" ) ,
1176
+ link_name = "__xnet_getaddrinfo"
1177
+ ) ]
1160
1178
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_getaddrinfo" ) ]
1161
1179
pub fn getaddrinfo (
1162
1180
node : * const c_char ,
0 commit comments