libstdc++: Do not use dirent::d_type unconditionally
authorJonathan Wakely <jwakely@redhat.com>
Tue, 1 Feb 2022 23:58:08 +0000 (23:58 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 2 Feb 2022 00:01:43 +0000 (00:01 +0000)
commitd98668eb06f532b2dbe0c721fa1b9ed6e643df27
treec1b6d024a70a473c0178dd38415d0c8e80a79c29
parentc17975d81aaed49ff759c20c68b31304a6953d58
libstdc++: Do not use dirent::d_type unconditionally

These new tests should not use the d_type member unless it's actually
present on the OS.

libstdc++-v3/ChangeLog:

* testsuite/27_io/filesystem/iterators/error_reporting.cc: Use
autoconf macro to check whether d_type is present.
* testsuite/experimental/filesystem/iterators/error_reporting.cc:
Likewise.
libstdc++-v3/testsuite/27_io/filesystem/iterators/error_reporting.cc
libstdc++-v3/testsuite/experimental/filesystem/iterators/error_reporting.cc