public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-9653] libstdc++: Restore <unistd.h> in testsuite_fs.h header [PR 99096]
@ 2021-04-01 20:31 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-04-01 20:31 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:3a2dc91d7574d1b03b4e5a8ce4098afb62145c35
commit r10-9653-g3a2dc91d7574d1b03b4e5a8ce4098afb62145c35
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Sun Feb 14 20:38:32 2021 +0000
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>.
(cherry picked from commit 4e3590d06cf8a06fcc460ccda6150483a0311bae)
Diff:
---
libstdc++-v3/testsuite/util/testsuite_fs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/testsuite/util/testsuite_fs.h b/libstdc++-v3/testsuite/util/testsuite_fs.h
index 69e5edc3cd4..df2344fae92 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-01 20:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01 20:31 [gcc r10-9653] libstdc++: Restore <unistd.h> in testsuite_fs.h header [PR 99096] Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).