diff mbox series

[committed] libstdc++: Fix test failure on AIX

Message ID 20220303223850.1115903-1-jwakely@redhat.com
State New
Headers show
Series [committed] libstdc++: Fix test failure on AIX | expand

Commit Message

Jonathan Wakely March 3, 2022, 10:38 p.m. UTC
Tested x86_64-linux, pushed to trunk.

-- >8 --

This fixes a test failure due to a non-reserved name in an AIX system
header (included via <pthread.h>). That name clashes with one of the
names we check our own headers for, so skip checking that name on AIX.

libstdc++-v3/ChangeLog:

	* testsuite/17_intro/names.cc (func): Undef on AIX.
---
 libstdc++-v3/testsuite/17_intro/names.cc | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc
index 1f7f83da8fa..ede2fe8caa7 100644
--- a/libstdc++-v3/testsuite/17_intro/names.cc
+++ b/libstdc++-v3/testsuite/17_intro/names.cc
@@ -203,6 +203,8 @@ 
 #undef y
 // <sys/var.h> defines vario::v
 #undef v
+// <sys/timer.h> defines trb::func and cputime_tmr::func
+#undef func
 #endif
 
 #ifdef __APPLE__