[wasm] include/ruby/io.h: define RB_WAITFD_PRI by ourselves for wasi
RB_WAITFD_PRI uses POLLPRI for other platforms, but wasi-libc doesn't have POLLPRI for now.
This commit is contained in:
parent
4f579ecfce
commit
50f1468bfd
Notes:
git
2022-01-19 11:19:36 +09:00
@ -35,7 +35,12 @@
|
||||
# undef revents
|
||||
# endif
|
||||
# define RB_WAITFD_IN POLLIN
|
||||
# define RB_WAITFD_PRI POLLPRI
|
||||
# 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
|
||||
# define RB_WAITFD_PRI POLLPRI
|
||||
# endif
|
||||
# define RB_WAITFD_OUT POLLOUT
|
||||
#else
|
||||
# define RB_WAITFD_IN 0x001
|
||||
|
Loading…
x
Reference in New Issue
Block a user