@@ -66,7 +66,7 @@ pub enum AddressFamily {
6666 #[ cfg( linux_android) ]
6767 Netlink = libc:: AF_NETLINK ,
6868 /// Kernel interface for interacting with the routing table
69- #[ cfg( not( any( linux_android, target_os = "redox" ) ) ) ]
69+ #[ cfg( not( any( linux_android, target_os = "redox" , target_os = "cygwin" ) ) ) ]
7070 Route = libc:: PF_ROUTE ,
7171 /// Low level packet interface (see [`packet(7)`](https://man7.org/linux/man-pages/man7/packet.7.html))
7272 #[ cfg( any( linux_android, solarish, target_os = "fuchsia" ) ) ]
@@ -78,7 +78,7 @@ pub enum AddressFamily {
7878 #[ cfg( linux_android) ]
7979 Ax25 = libc:: AF_AX25 ,
8080 /// IPX - Novell protocols
81- #[ cfg( not( any( target_os = "aix" , target_os = "redox" ) ) ) ]
81+ #[ cfg( not( any( target_os = "aix" , target_os = "redox" , target_os = "cygwin" ) ) ) ]
8282 Ipx = libc:: AF_IPX ,
8383 /// AppleTalk
8484 #[ cfg( not( target_os = "redox" ) ) ]
@@ -164,6 +164,7 @@ pub enum AddressFamily {
164164 apple_targets,
165165 target_os = "hurd" ,
166166 target_os = "redox" ,
167+ target_os = "cygwin" ,
167168 ) ) ) ]
168169 Bluetooth = libc:: AF_BLUETOOTH ,
169170 /// IUCV (inter-user communication vehicle) z/VM protocol for
@@ -180,6 +181,7 @@ pub enum AddressFamily {
180181 target_os = "haiku" ,
181182 target_os = "hurd" ,
182183 target_os = "redox" ,
184+ target_os = "cygwin" ,
183185 ) ) ) ]
184186 Isdn = libc:: AF_ISDN ,
185187 /// Nokia cellular modem IPC/RPC interface
@@ -263,7 +265,7 @@ impl AddressFamily {
263265 libc:: AF_NETLINK => Some ( AddressFamily :: Netlink ) ,
264266 #[ cfg( apple_targets) ]
265267 libc:: AF_SYSTEM => Some ( AddressFamily :: System ) ,
266- #[ cfg( not( any( linux_android, target_os = "redox" ) ) ) ]
268+ #[ cfg( not( any( linux_android, target_os = "redox" , target_os = "cygwin" ) ) ) ]
267269 libc:: PF_ROUTE => Some ( AddressFamily :: Route ) ,
268270 #[ cfg( linux_android) ]
269271 libc:: AF_PACKET => Some ( AddressFamily :: Packet ) ,
@@ -446,6 +448,7 @@ impl UnixAddr {
446448 target_os = "fuchsia" ,
447449 solarish,
448450 target_os = "redox" ,
451+ target_os = "cygwin" ,
449452 ) ) ]
450453 {
451454 UnixAddr { sun, sun_len }
@@ -510,6 +513,7 @@ impl UnixAddr {
510513 target_os = "fuchsia" ,
511514 solarish,
512515 target_os = "redox" ,
516+ target_os = "cygwin" ,
513517 ) ) ]
514518 {
515519 self . sun_len
@@ -556,6 +560,7 @@ impl SockaddrLike for UnixAddr {
556560 target_os = "fuchsia" ,
557561 solarish,
558562 target_os = "redox" ,
563+ target_os = "cygwin" ,
559564 ) ) ] {
560565 let su_len = len. unwrap_or(
561566 mem:: size_of:: <libc:: sockaddr_un>( ) as libc:: socklen_t
@@ -1122,7 +1127,7 @@ pub union SockaddrStorage {
11221127 alg : AlgAddr ,
11231128 #[ cfg( all(
11241129 feature = "net" ,
1125- not( any( target_os = "hurd" , target_os = "redox" ) )
1130+ not( any( target_os = "hurd" , target_os = "redox" , target_os = "cygwin" ) )
11261131 ) ) ]
11271132 #[ cfg_attr( docsrs, doc( cfg( feature = "net" ) ) ) ]
11281133 dl : LinkAddr ,
0 commit comments