diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-02-14 20:38:32 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-02-14 20:38:32 +0000 |
commit | 4e3590d06cf8a06fcc460ccda6150483a0311bae (patch) | |
tree | bd81c31d4cf3d4f635e3e74981b31bd1c96c8e25 | |
parent | c8656df666721ca06066ec59f61524c30cbde03f (diff) | |
download | gcc-4e3590d06cf8a06fcc460ccda6150483a0311bae.zip gcc-4e3590d06cf8a06fcc460ccda6150483a0311bae.tar.gz gcc-4e3590d06cf8a06fcc460ccda6150483a0311bae.tar.bz2 |
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>.
-rw-r--r-- | libstdc++-v3/testsuite/util/testsuite_fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/util/testsuite_fs.h b/libstdc++-v3/testsuite/util/testsuite_fs.h index e4d04dd..1eadf7f 100644 --- a/libstdc++-v3/testsuite/util/testsuite_fs.h +++ b/libstdc++-v3/testsuite/util/testsuite_fs.h @@ -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 |