libstdc++: Fix test failure on AIX
authorJonathan Wakely <jwakely@redhat.com>
Thu, 3 Mar 2022 22:20:32 +0000 (22:20 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 3 Mar 2022 22:25:44 +0000 (22:25 +0000)
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

index 1f7f83d..ede2fe8 100644 (file)
 #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__