Fix unit test build on Windows
authorTom Tromey <tromey@adacore.com>
Wed, 8 Sep 2021 15:17:39 +0000 (09:17 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 8 Sep 2021 15:17:39 +0000 (09:17 -0600)
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

index a2cd47251ebb3d460b194a9ea76753635a46076c..f149e72f0c72c65be931b0dd548e4ddab21f4398 100644 (file)
 #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 {