Skip to content

Commit 47bb0b8

Browse files
committed
errno-util: consider ENOPROTOOPT another "not supported"
It's generated by not supported getsocktopt()/setsockopt() options, and it's just another way for saying "not supported", hence treat it as such.
1 parent 90db158 commit 47bb0b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/basic/errno-util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ static inline bool ERRNO_IS_NEG_NOT_SUPPORTED(intmax_t r) {
167167
-EAFNOSUPPORT,
168168
-EPFNOSUPPORT,
169169
-EPROTONOSUPPORT,
170-
-ESOCKTNOSUPPORT);
170+
-ESOCKTNOSUPPORT,
171+
-ENOPROTOOPT);
171172
}
172173
_DEFINE_ABS_WRAPPER(NOT_SUPPORTED);
173174

0 commit comments

Comments
 (0)