Commit 5faf8dba3d for openssl.org
commit 5faf8dba3d4ae99226b4d450f2ecc403dae9086c
Author: sanumesh <sanumesh@in.ibm.com>
Date: Thu Nov 5 05:26:34 2026 -0600
test: resolve compilation issues for AIX 32-bit build
Undefine "events" and "revents" defines when built on 32-bit AIX,
as <sys/poll.h> defines them as SysV aliases for "reqevents"
and "rtnevents" fields of struct pollfd, respectively, and that
conflicts with events/revents fields of struct ssl_poll_item_st
(typedef'ed as SSL_POLL_ITEM), used in dtls_multithread_test.c
and dtlsssllistenertest.c tests.
Complements: 2f0ad0d852ea "DTLS 1.3 Limit DTLSv1_listen to DTLS1.2 and add SSL Listener for DTLS"
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Merge-date: Tue Nov 10 14:54:24 2026
Merged-from: https://github.com/openssl/openssl/pull/33555
diff --git a/test/dtls_multithread_test.c b/test/dtls_multithread_test.c
index 066f68a853..32055f130e 100644
--- a/test/dtls_multithread_test.c
+++ b/test/dtls_multithread_test.c
@@ -25,6 +25,10 @@ static char *privkey = NULL;
#define POLL_TIMEOUT_SEC 5
#define MAX_POLL_RETRIES 50
+#if defined(_AIX) && !defined(__64BIT__)
+#undef revents
+#undef events
+#endif
/*
* Per-thread state for server connection handlers
*/
diff --git a/test/dtlsssllistenertest.c b/test/dtlsssllistenertest.c
index c3cdfca811..f7129e191d 100644
--- a/test/dtlsssllistenertest.c
+++ b/test/dtlsssllistenertest.c
@@ -36,6 +36,10 @@
#include "testutil.h"
#include "../ssl/ssl_local.h"
+#if defined(_AIX) && !defined(__64BIT__)
+#undef revents
+#undef events
+#endif
static char *cert = NULL;
static char *privkey = NULL;