From: Jonathan Wakely Date: Tue, 27 May 2025 11:54:14 +0000 (+0100) Subject: libstdc++: Fix some names.cc test failures on AIX X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1ced2a5ea6b09ad54ad927f90ccc8047cb74e19;p=thirdparty%2Fgcc.git libstdc++: Fix some names.cc test failures on AIX libstdc++-v3/ChangeLog: * testsuite/17_intro/names.cc [_AIX] (n): Undefine. * testsuite/experimental/names.cc [_AIX] (ptr): Undefine. --- diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index 0e67c795564..a61e49dc819 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -248,6 +248,8 @@ #undef r #undef x #undef y +// defines _LC_weight_t::n +#undef n // defines pollfd_ext::u on AIX 7.3 #undef u // defines vario::v diff --git a/libstdc++-v3/testsuite/experimental/names.cc b/libstdc++-v3/testsuite/experimental/names.cc index e0a7d4f9b88..4bedd530ecc 100644 --- a/libstdc++-v3/testsuite/experimental/names.cc +++ b/libstdc++-v3/testsuite/experimental/names.cc @@ -22,6 +22,12 @@ // naming variables, parameters etc. in the library. #include "../17_intro/names.cc" + +#ifdef _AIX +// declares endnetgrent_r with ptr parameter. +# undef n +#endif + // Filesystem #if __has_include() # include