[committed] libstdc++: Restore <unistd.h> in testsuite_fs.h header [PR 99096]
Jonathan Wakely
jwakely@redhat.com
Sun Feb 14 20:42:39 GMT 2021
libstdc++-v3/ChangeLog:
PR libstdc++/99096
* testsuite/util/testsuite_fs.h: Always include <unistd.h>.
Tested x86_64-linux. Committed to trunk.
-------------- next part --------------
commit 4e3590d06cf8a06fcc460ccda6150483a0311bae
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Sun Feb 14 20:38:32 2021
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>.
diff --git a/libstdc++-v3/testsuite/util/testsuite_fs.h b/libstdc++-v3/testsuite/util/testsuite_fs.h
index e4d04dd7799..1eadf7fa767 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
More information about the Gcc-patches
mailing list