diff --git a/libstdc++-v3/include/ext/stdio_sync_filebuf.h b/libstdc++-v3/include/ext/stdio_sync_filebuf.h index 178b471957a..90765e55831 100644 --- a/libstdc++-v3/include/ext/stdio_sync_filebuf.h +++ b/libstdc++-v3/include/ext/stdio_sync_filebuf.h @@ -32,7 +32,6 @@ #pragma GCC system_header #include -#include #include #include // For __c_file #include // For __exchange diff --git a/libstdc++-v3/src/c++17/fs_ops.cc b/libstdc++-v3/src/c++17/fs_ops.cc index 72755c98a5a..04a559ab1d6 100644 --- a/libstdc++-v3/src/c++17/fs_ops.cc +++ b/libstdc++-v3/src/c++17/fs_ops.cc @@ -1130,7 +1130,7 @@ fs::permissions(const path& p, perms prms, perm_options opts, #else if (nofollow && is_symlink(st)) ec = std::make_error_code(std::errc::not_supported); - else if (posix::chmod(p.c_str(), static_cast(prms))) + else if (posix::chmod(p.c_str(), static_cast(prms))) err = errno; #endif