libstdc++: Fix build failure for targets without unistd.h
authorVladimir Vishnevsky <vv.os.swe@gmail.com>
Tue, 9 Feb 2021 10:25:38 +0000 (10:25 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 9 Feb 2021 12:31:52 +0000 (12:31 +0000)
commitadeaa43ad3bd8004c2521e1fb3bb0e08be33234b
tree413071c501d999139cab95a86474bb5e17819d2b
parent396cc31317ebad416e234dfa5f85d42585d32437
libstdc++: Fix build failure for targets without unistd.h

The patch fixes build issues occurring if build parameter
"--enable-cstdio=stdio_pure" is specified and no unistd.h is
present in the environment.

libstdc++-v3/ChangeLog:

* include/ext/stdio_sync_filebuf.h: Remove unused <unistd.h>.
* src/c++17/fs_ops.cc (fs::permissions): Qualify mode_t.
libstdc++-v3/include/ext/stdio_sync_filebuf.h
libstdc++-v3/src/c++17/fs_ops.cc