… | |
… | |
970 | errno = ENOSYS; |
970 | errno = ENOSYS; |
971 | #endif |
971 | #endif |
972 | |
972 | |
973 | if (res < 0 |
973 | if (res < 0 |
974 | && (errno == ENOSYS || errno == EINVAL || errno == ENOTSOCK |
974 | && (errno == ENOSYS || errno == EINVAL || errno == ENOTSOCK |
|
|
975 | /* BSDs */ |
|
|
976 | #ifdef ENOTSUP /* sigh, if the steenking pile called openbsd would only try to at least compile posix code... */ |
|
|
977 | || errno == ENOTSUP |
|
|
978 | #endif |
975 | || errno == ENOTSUP || errno == EOPNOTSUPP /* BSDs */ |
979 | || errno == EOPNOTSUPP /* BSDs */ |
976 | #if __solaris |
980 | #if __solaris |
977 | || errno == EAFNOSUPPORT || errno == EPROTOTYPE |
981 | || errno == EAFNOSUPPORT || errno == EPROTOTYPE |
978 | #endif |
982 | #endif |
979 | ) |
983 | ) |
980 | ) |
984 | ) |