@@ -591,6 +591,7 @@ extern "C" {
591
591
#[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
592
592
#[ cfg_attr( target_os = "netbsd" , link_name = "__socket30" ) ]
593
593
#[ cfg_attr( target_os = "illumos" , link_name = "__xnet_socket" ) ]
594
+ #[ cfg_attr( target_os = "solaris" , link_name = "__xnet_socket" ) ]
594
595
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_socket" ) ]
595
596
pub fn socket ( domain : :: c_int , ty : :: c_int , protocol : :: c_int ) -> :: c_int ;
596
597
#[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
@@ -599,6 +600,7 @@ extern "C" {
599
600
link_name = "connect$UNIX2003"
600
601
) ]
601
602
#[ cfg_attr( target_os = "illumos" , link_name = "__xnet_connect" ) ]
603
+ #[ cfg_attr( target_os = "solaris" , link_name = "__xnet_connect" ) ]
602
604
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_connect" ) ]
603
605
pub fn connect ( socket : :: c_int , address : * const sockaddr , len : socklen_t ) -> :: c_int ;
604
606
#[ cfg_attr(
@@ -649,6 +651,7 @@ extern "C" {
649
651
link_name = "socketpair$UNIX2003"
650
652
) ]
651
653
#[ cfg_attr( target_os = "illumos" , link_name = "__xnet_socketpair" ) ]
654
+ #[ cfg_attr( target_os = "solaris" , link_name = "__xnet_socketpair" ) ]
652
655
pub fn socketpair (
653
656
domain : :: c_int ,
654
657
type_ : :: c_int ,
@@ -661,6 +664,7 @@ extern "C" {
661
664
link_name = "sendto$UNIX2003"
662
665
) ]
663
666
#[ cfg_attr( target_os = "illumos" , link_name = "__xnet_sendto" ) ]
667
+ #[ cfg_attr( target_os = "solaris" , link_name = "__xnet_sendto" ) ]
664
668
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_sendto" ) ]
665
669
pub fn sendto (
666
670
socket : :: c_int ,
@@ -1138,6 +1142,7 @@ extern "C" {
1138
1142
pub fn pthread_rwlockattr_destroy ( attr : * mut pthread_rwlockattr_t ) -> :: c_int ;
1139
1143
1140
1144
#[ cfg_attr( target_os = "illumos" , link_name = "__xnet_getsockopt" ) ]
1145
+ #[ cfg_attr( target_os = "solaris" , link_name = "__xnet_getsockopt" ) ]
1141
1146
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_getsockopt" ) ]
1142
1147
pub fn getsockopt (
1143
1148
sockfd : :: c_int ,
@@ -1157,6 +1162,7 @@ extern "C" {
1157
1162
1158
1163
#[ cfg( not( all( target_arch = "powerpc" , target_vendor = "nintendo" ) ) ) ]
1159
1164
#[ cfg_attr( target_os = "illumos" , link_name = "__xnet_getaddrinfo" ) ]
1165
+ #[ cfg_attr( target_os = "solaris" , link_name = "__xnet_getaddrinfo" ) ]
1160
1166
#[ cfg_attr( target_os = "espidf" , link_name = "lwip_getaddrinfo" ) ]
1161
1167
pub fn getaddrinfo (
1162
1168
node : * const c_char ,
0 commit comments