From: Jonathan Wakely Date: Fri, 2 Feb 2024 10:46:52 +0000 (+0000) Subject: libstdc++: Fix experimental/names.cc failure on AIX X-Git-Tag: basepoints/gcc-15~1388 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f929293589009f82d19d6df447af6f7e7b984107;p=thirdparty%2Fgcc.git libstdc++: Fix experimental/names.cc failure on AIX This fails due to "u" being used in a system header. FAIL: experimental/names.cc -std=gnu++17 (test for excess errors) Excess errors: /usr/include/sys/poll.h:77: error: expected unqualified-id before ';' token /usr/include/sys/poll.h:77: error: expected ')' before ';' token FAIL: experimental/names.cc -std=gnu++17 (test for excess errors) Excess errors: /usr/include/sys/poll.h:102: error: expected unqualified-id before ';' token /usr/include/sys/poll.h:102: error: expected ')' before ';' token libstdc++-v3/ChangeLog: * testsuite/17_intro/names.cc [_AIX]: Undefine "u". --- diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index 53c5aff219d3..784da9a73522 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -240,6 +240,8 @@ #undef r #undef x #undef y +// defines pollfd_ext::u on AIX 7.3 +#undef u // defines vario::v #undef v // defines trb::func and cputime_tmr::func