]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix AIX build in test/radix/quic_tests.c
authorsashan <anedvedicky@gmail.com>
Fri, 11 Apr 2025 20:46:10 +0000 (22:46 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 19 May 2025 06:42:29 +0000 (08:42 +0200)
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27354)

(cherry picked from commit 235092d780857baf64cefae7eeb8e06e56e19147)

test/radix/quic_tests.c

index 4fd207f0bd97432393e6bcaef72e4f1687aab3b8..21ad05415da790823b447d06e398647012ed3fc3 100644 (file)
@@ -7,6 +7,16 @@
  * https://www.openssl.org/source/license.html
  */
 
+#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
+
 /*
  * Test Scripts
  * ============================================================================