From 828a9ed9ca86020a6dc08c6582d22b4953039623 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 8 Sep 2021 09:17:39 -0600 Subject: Fix unit test build on Windows 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(-) (limited to 'gdb/unittests') diff --git a/gdb/unittests/parallel-for-selftests.c b/gdb/unittests/parallel-for-selftests.c index a2cd472..f149e72 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 { -- cgit v1.1