summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-09-08 09:17:39 -0600
committerTom Tromey <tromey@adacore.com>2021-09-08 09:17:39 -0600
commit828a9ed9ca86020a6dc08c6582d22b4953039623 (patch)
treed00b5b178a8039f11385bf88c98faacaa0c041e7
parent733ae98cb8fb0d5653887cfd79aec3cfe5e44846 (diff)
downloadbinutils-gdb-828a9ed9ca86020a6dc08c6582d22b4953039623.tar.gz
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.
-rw-r--r--gdb/unittests/parallel-for-selftests.c3
1 files changed, 2 insertions, 1 deletions
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 {