libstdc++: Restore <unistd.h> in testsuite_fs.h header [PR 99096]
libstdc++-v3/ChangeLog: PR libstdc++/99096 * testsuite/util/testsuite_fs.h: Always include <unistd.h>.
This commit is contained in:
parent
c8656df666
commit
4e3590d06c
1 changed files with 1 additions and 1 deletions
|
@ -34,10 +34,10 @@ namespace test_fs = std::experimental::filesystem;
|
|||
#include <fstream>
|
||||
#include <string>
|
||||
#include <cstdio>
|
||||
#include <unistd.h> // unlink, close, getpid
|
||||
|
||||
#if defined(_GNU_SOURCE) || _XOPEN_SOURCE >= 500 || _POSIX_C_SOURCE >= 200112L
|
||||
#include <stdlib.h> // mkstemp
|
||||
#include <unistd.h> // unlink, close
|
||||
#else
|
||||
#include <random> // std::random_device
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue