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:
parent
0d1aabb60e
commit
6e3419529d
1 changed files with 1 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue