diff options
Diffstat (limited to 'src/unix/internal.h')
-rw-r--r-- | src/unix/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unix/internal.h b/src/unix/internal.h index 89b73e2b..d8c792f6 100644 --- a/src/unix/internal.h +++ b/src/unix/internal.h @@ -141,6 +141,11 @@ union uv__sockaddr { /* Leans on the fact that, on Linux, POLLRDHUP == EPOLLRDHUP. */ #ifdef POLLRDHUP # define UV__POLLRDHUP POLLRDHUP +#elif defined(__QNX__) +/* On QNX, POLLRDHUP is not available and the 0x2000 workaround + * leads to undefined bahavior. + */ +# define UV__POLLRDHUP 0 #else # define UV__POLLRDHUP 0x2000 #endif |