libstdc++: Fix std::filesystem build failure for Windows

The std::filesystem code needs to use posix::DIR not ::DIR, as that is
an alias for _WDIR on Windows.

libstdc++-v3/ChangeLog:

	* src/filesystem/dir-common.h (_Dir_base::openat): Change return
	type to use portable posix::DIR alias.
This commit is contained in:
Jonathan Wakely 2022-02-04 23:54:17 +00:00
parent 0d1aabb60e
commit 6e3419529d

View file

@ -173,7 +173,7 @@ struct _Dir_base
return true;
}
static ::DIR*
static posix::DIR*
openat(int fd, const posix::char_type* pathname, bool nofollow)
{
#if _GLIBCXX_HAVE_FDOPENDIR && defined O_RDONLY && defined O_DIRECTORY \