--- libeio/eio.c 2010/01/02 14:11:32 1.48 +++ libeio/eio.c 2010/01/02 14:24:32 1.49 @@ -972,7 +972,11 @@ if (res < 0 && (errno == ENOSYS || errno == EINVAL || errno == ENOTSOCK - || errno == ENOTSUP || errno == EOPNOTSUPP /* BSDs */ + /* BSDs */ +#ifdef ENOTSUP /* sigh, if the steenking pile called openbsd would only try to at least compile posix code... */ + || errno == ENOTSUP +#endif + || errno == EOPNOTSUPP /* BSDs */ #if __solaris || errno == EAFNOSUPPORT || errno == EPROTOTYPE #endif