public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Fix unit test build on Windows
@ 2021-09-08 15:19 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2021-09-08 15:19 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

Like Tom de Vries' earlier patch to fix the no-CXX_STD_THREAD case in
maint.c, this patch fixes a similar problem in
parallel-for-selftests.c.  This fixes a build failure on Windows.
---
 gdb/unittests/parallel-for-selftests.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/unittests/parallel-for-selftests.c b/gdb/unittests/parallel-for-selftests.c
index a2cd47251eb..f149e72f0c7 100644
--- a/gdb/unittests/parallel-for-selftests.c
+++ b/gdb/unittests/parallel-for-selftests.c
@@ -20,10 +20,11 @@
 #include "defs.h"
 #include "gdbsupport/selftest.h"
 #include "gdbsupport/parallel-for.h"
-#include "gdbsupport/thread-pool.h"
 
 #if CXX_STD_THREAD
 
+#include "gdbsupport/thread-pool.h"
+
 namespace selftests {
 namespace parallel_for {
 
-- 
2.31.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-08 15:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08 15:19 [pushed] Fix unit test build on Windows Tom Tromey

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).