diff --git a/src/unix/stream.c b/src/unix/stream.c index 8d00838f..518a2fce 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -394,7 +394,8 @@ int uv__stream_open(uv_stream_t* stream, int fd, int flags) { #if defined(__APPLE__) enable = 1; if (setsockopt(fd, SOL_SOCKET, SO_OOBINLINE, &enable, sizeof(enable)) && - errno != ENOTSOCK) { + errno != ENOTSOCK && + errno != EINVAL) { return -errno; } #endif