1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

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.
This commit is contained in:
Lennart Poettering 2024-04-25 12:43:19 +02:00
parent 90db1582a9
commit 47bb0b8c29

View File

@ -167,7 +167,8 @@ static inline bool ERRNO_IS_NEG_NOT_SUPPORTED(intmax_t r) {
-EAFNOSUPPORT,
-EPFNOSUPPORT,
-EPROTONOSUPPORT,
-ESOCKTNOSUPPORT);
-ESOCKTNOSUPPORT,
-ENOPROTOOPT);
}
_DEFINE_ABS_WRAPPER(NOT_SUPPORTED);