aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-03-03 22:20:32 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-03-03 22:25:44 +0000
commit64cdf49962996747b4c5687a705551d5fc61fac8 (patch)
tree32e802962b48d514282bd948a2df7b7074c76186
parent9805965e3551b66b5bd751d6076791d00cdeb137 (diff)
downloadgcc-64cdf49962996747b4c5687a705551d5fc61fac8.zip
gcc-64cdf49962996747b4c5687a705551d5fc61fac8.tar.gz
gcc-64cdf49962996747b4c5687a705551d5fc61fac8.tar.bz2
libstdc++: Fix test failure on AIX
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.
-rw-r--r--libstdc++-v3/testsuite/17_intro/names.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc
index 1f7f83d..ede2fe8 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__