[pushed] Fix unit test build on Windows

Message ID 20210908151931.3695725-1-tromey@adacore.com
State New
Headers show
Series
  • [pushed] Fix unit test build on Windows
Related show

Commit Message

Tom Tromey Sept. 8, 2021, 3:19 p.m.
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(-)

-- 
2.31.1

Patch

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 {