diff options
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/io.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index 6ecf405366..36857db8f8 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -35,11 +35,10 @@ # undef revents # endif # define RB_WAITFD_IN POLLIN -# if defined(__wasi__) && !defined(POLLPRI) -// wasi-libc doesn't have POLLPRI and 0x002 is already reserved for POLLOUT, so use 0x003 -# define RB_WAITFD_PRI 0x003 -# else +# if defined(POLLPRI) # define RB_WAITFD_PRI POLLPRI +# else +# define RB_WAITFD_PRI 0 # endif # define RB_WAITFD_OUT POLLOUT #else |
