diff --git a/ssl/rio/poll_immediate.c b/ssl/rio/poll_immediate.c index 38afaf5157..cfdfa13674 100644 --- a/ssl/rio/poll_immediate.c +++ b/ssl/rio/poll_immediate.c @@ -15,6 +15,16 @@ #include "../ssl_local.h" #include "poll_builder.h" +#if defined(_AIX) +/* + * Some versions of AIX define macros for events and revents for use when + * accessing pollfd structures (see Github issue #24236). That interferes + * with our use of these names here. We simply undef them. + */ +# undef revents +# undef events +#endif + #define ITEM_N(items, stride, n) \ (*(SSL_POLL_ITEM *)((char *)(items) + (n)*(stride)))