Handle ENOTSUP separately when it's different from EOPNOTSUPP

This commit is contained in:
Theodore Dubois 2020-08-23 13:54:17 -07:00
parent b62fe8f256
commit f0d770bef4

View File

@ -67,6 +67,9 @@ int err_map(int err) {
ERRCASE(EPROTONOSUPPORT)
ERRCASE(ESOCKTNOSUPPORT)
ERRCASE(EOPNOTSUPP)
#if EOPNOTSUPP != ENOTSUP
ERRCASE(ENOTSUP)
#endif
ERRCASE(EPFNOSUPPORT)
ERRCASE(EAFNOSUPPORT)
ERRCASE(EADDRINUSE)