@@ -85,6 +85,7 @@ pub(crate) use libc::IP_HDRINCL;
8585 target_os = "openbsd" ,
8686 target_os = "redox" ,
8787 target_os = "solaris" ,
88+ target_os = "nto" ,
8889) ) ) ]
8990pub ( crate ) use libc:: IP_RECVTOS ;
9091#[ cfg( not( any(
@@ -112,6 +113,7 @@ pub(crate) use libc::{
112113 target_os = "openbsd" ,
113114 target_os = "redox" ,
114115 target_os = "fuchsia" ,
116+ target_os = "nto" ,
115117) ) ) ]
116118pub ( crate ) use libc:: {
117119 ip_mreq_source as IpMreqSource , IP_ADD_SOURCE_MEMBERSHIP , IP_DROP_SOURCE_MEMBERSHIP ,
@@ -124,7 +126,8 @@ pub(crate) use libc::{
124126 target_os = "netbsd" ,
125127 target_os = "openbsd" ,
126128 target_os = "solaris" ,
127- target_vendor = "apple"
129+ target_vendor = "apple" ,
130+ target_os = "nto" ,
128131) ) ) ]
129132pub ( crate ) use libc:: { IPV6_ADD_MEMBERSHIP , IPV6_DROP_MEMBERSHIP } ;
130133#[ cfg( any(
@@ -136,6 +139,7 @@ pub(crate) use libc::{IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP};
136139 target_os = "openbsd" ,
137140 target_os = "solaris" ,
138141 target_vendor = "apple" ,
142+ target_os = "nto" ,
139143) ) ]
140144pub ( crate ) use libc:: {
141145 IPV6_JOIN_GROUP as IPV6_ADD_MEMBERSHIP , IPV6_LEAVE_GROUP as IPV6_DROP_MEMBERSHIP ,
@@ -158,9 +162,14 @@ pub(crate) use libc::{TCP_KEEPCNT, TCP_KEEPINTVL};
158162// See this type in the Windows file.
159163pub ( crate ) type Bool = c_int ;
160164
161- #[ cfg( target_vendor = "apple" ) ]
165+ #[ cfg( any ( target_vendor = "apple" , target_os = "nto" ) ) ]
162166use libc:: TCP_KEEPALIVE as KEEPALIVE_TIME ;
163- #[ cfg( not( any( target_vendor = "apple" , target_os = "haiku" , target_os = "openbsd" ) ) ) ]
167+ #[ cfg( not( any(
168+ target_vendor = "apple" ,
169+ target_os = "haiku" ,
170+ target_os = "openbsd" ,
171+ target_os = "nto"
172+ ) ) ) ]
164173use libc:: TCP_KEEPIDLE as KEEPALIVE_TIME ;
165174
166175/// Helper macro to execute a system call that returns an `io::Result`.
@@ -220,6 +229,7 @@ type IovLen = usize;
220229 target_os = "openbsd" ,
221230 target_os = "solaris" ,
222231 target_vendor = "apple" ,
232+ target_os = "nto" ,
223233) ) ]
224234type IovLen = c_int ;
225235
@@ -316,7 +326,8 @@ impl Type {
316326 target_os = "illumos" ,
317327 target_os = "linux" ,
318328 target_os = "netbsd" ,
319- target_os = "openbsd"
329+ target_os = "openbsd" ,
330+ target_os = "nto" , /* From 7.0 up */
320331 )
321332 ) ) ]
322333 #[ cfg_attr(
@@ -331,7 +342,8 @@ impl Type {
331342 target_os = "illumos" ,
332343 target_os = "linux" ,
333344 target_os = "netbsd" ,
334- target_os = "openbsd"
345+ target_os = "openbsd" ,
346+ target_os = "nto" ,
335347 )
336348 ) ) )
337349 ) ]
@@ -347,7 +359,8 @@ impl Type {
347359 target_os = "illumos" ,
348360 target_os = "linux" ,
349361 target_os = "netbsd" ,
350- target_os = "openbsd"
362+ target_os = "openbsd" ,
363+ target_os = "nto" ,
351364 ) ) ]
352365 pub ( crate ) const fn _cloexec ( self ) -> Type {
353366 Type ( self . 0 | libc:: SOCK_CLOEXEC )
@@ -1028,6 +1041,7 @@ pub(crate) fn from_in6_addr(addr: in6_addr) -> Ipv6Addr {
10281041 target_os = "openbsd" ,
10291042 target_os = "redox" ,
10301043 target_os = "solaris" ,
1044+ target_os = "nto" ,
10311045) ) ) ]
10321046pub ( crate ) fn to_mreqn (
10331047 multiaddr : & Ipv4Addr ,
@@ -1197,6 +1211,7 @@ impl crate::Socket {
11971211 target_os = "freebsd" ,
11981212 target_os = "fuchsia" ,
11991213 target_os = "linux" ,
1214+ target_os = "nto" ,
12001215 )
12011216 ) ) ]
12021217 #[ cfg_attr(
@@ -1208,6 +1223,7 @@ impl crate::Socket {
12081223 target_os = "freebsd" ,
12091224 target_os = "fuchsia" ,
12101225 target_os = "linux" ,
1226+ target_os = "nto" ,
12111227 )
12121228 ) ) )
12131229 ) ]
0 commit comments