diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/io.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index 07be55c46c..b5ea2e9c95 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -29,7 +29,17 @@ extern "C" { #include "ruby/config.h" #if defined(HAVE_POLL) +# ifdef _AIX +# define reqevents events +# define rtnevents revents +# endif # include <poll.h> +# ifdef _AIX +# undef reqevents +# undef rtnevents +# undef events +# undef revents +# endif # define RB_WAITFD_IN POLLIN # define RB_WAITFD_PRI POLLPRI # define RB_WAITFD_OUT POLLOUT |