@@ -590,15 +590,21 @@ extern "C" {
590590
591591 #[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
592592 #[ 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+ ) ]
594597 #[ cfg_attr( target_os = "espidf" , link_name = "lwip_socket" ) ]
595598 pub fn socket ( domain : :: c_int , ty : :: c_int , protocol : :: c_int ) -> :: c_int ;
596599 #[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
597600 #[ cfg_attr(
598601 all( target_os = "macos" , target_arch = "x86" ) ,
599602 link_name = "connect$UNIX2003"
600603 ) ]
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+ ) ]
602608 #[ cfg_attr( target_os = "espidf" , link_name = "lwip_connect" ) ]
603609 pub fn connect ( socket : :: c_int , address : * const sockaddr , len : socklen_t ) -> :: c_int ;
604610 #[ cfg_attr(
@@ -648,7 +654,10 @@ extern "C" {
648654 all( target_os = "macos" , target_arch = "x86" ) ,
649655 link_name = "socketpair$UNIX2003"
650656 ) ]
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+ ) ]
652661 pub fn socketpair (
653662 domain : :: c_int ,
654663 type_ : :: c_int ,
@@ -660,7 +669,10 @@ extern "C" {
660669 all( target_os = "macos" , target_arch = "x86" ) ,
661670 link_name = "sendto$UNIX2003"
662671 ) ]
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+ ) ]
664676 #[ cfg_attr( target_os = "espidf" , link_name = "lwip_sendto" ) ]
665677 pub fn sendto (
666678 socket : :: c_int ,
@@ -1137,7 +1149,10 @@ extern "C" {
11371149 pub fn pthread_rwlockattr_init ( attr : * mut pthread_rwlockattr_t ) -> :: c_int ;
11381150 pub fn pthread_rwlockattr_destroy ( attr : * mut pthread_rwlockattr_t ) -> :: c_int ;
11391151
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+ ) ]
11411156 #[ cfg_attr( target_os = "espidf" , link_name = "lwip_getsockopt" ) ]
11421157 pub fn getsockopt (
11431158 sockfd : :: c_int ,
@@ -1156,7 +1171,10 @@ extern "C" {
11561171 pub fn dlclose ( handle : * mut :: c_void ) -> :: c_int ;
11571172
11581173 #[ 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+ ) ]
11601178 #[ cfg_attr( target_os = "espidf" , link_name = "lwip_getaddrinfo" ) ]
11611179 pub fn getaddrinfo (
11621180 node : * const c_char ,
0 commit comments