https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94681
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:eef40b0037b90ff117322423fc297dc528285524 commit r10-8784-geef40b0037b90ff117322423fc297dc528285524 Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Aug 10 18:58:14 2020 +0100 libstdc++: Fix build for targets without lstat [PR 94681] libstdc++-v3/ChangeLog: PR libstdc++/94681 * src/c++17/fs_ops.cc (read_symlink): Use posix::lstat instead of calling ::lstat directly. * src/filesystem/ops.cc (read_symlink): Likewise. (cherry picked from commit 5b065f0563262a0d6cd1fea8426913bfdd841301)