From: Tom Tromey Date: Wed, 8 Sep 2021 15:17:39 +0000 (-0600) Subject: Fix unit test build on Windows X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=828a9ed9ca86020a6dc08c6582d22b4953039623;p=binutils-gdb.git 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. --- 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 {