@@ -202,6 +202,7 @@ fn desc(errno: Errno) -> &'static str {
202
202
ECONNREFUSED => "Connection refused" ,
203
203
EHOSTDOWN => "Host is down" ,
204
204
EHOSTUNREACH => "No route to host" ,
205
+ ENOTSUP => "Operation not supported" ,
205
206
206
207
#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
207
208
ECHRNG => "Channel number out of range" ,
@@ -428,9 +429,6 @@ fn desc(errno: Errno) -> &'static str {
428
429
#[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "ios" ) ) ]
429
430
EOWNERDEAD => "Previous owner died" ,
430
431
431
- #[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
432
- ENOTSUP => "Operation not supported" ,
433
-
434
432
#[ cfg( any( target_os = "macos" , target_os = "freebsd" , target_os = "dragonfly" , target_os = "ios" , target_os = "openbsd" , target_os = "netbsd" ) ) ]
435
433
EPROCLIM => "Too many processes" ,
436
434
@@ -629,6 +627,7 @@ mod consts {
629
627
ENOPROTOOPT = libc:: ENOPROTOOPT ,
630
628
EPROTONOSUPPORT = libc:: EPROTONOSUPPORT ,
631
629
ESOCKTNOSUPPORT = libc:: ESOCKTNOSUPPORT ,
630
+ ENOTSUP = libc:: ENOTSUP ,
632
631
EOPNOTSUPP = libc:: EOPNOTSUPP ,
633
632
EPFNOSUPPORT = libc:: EPFNOSUPPORT ,
634
633
EAFNOSUPPORT = libc:: EAFNOSUPPORT ,
0 commit comments