From 5cbfb3a799bcded1a06897400a09f0efadc1f9e8 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Mon, 2 Sep 2024 10:29:36 +0200 Subject: [PATCH] lto/lto.cc: Fix build with not HAVE_WORKING_FORK gcc/lto/ChangeLog: * lto.cc: Add missing HAVE_WORKING_FORK. --- gcc/lto/lto.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/lto/lto.cc b/gcc/lto/lto.cc index 58ff0c45f57..52dd436fd9a 100644 --- a/gcc/lto/lto.cc +++ b/gcc/lto/lto.cc @@ -62,8 +62,10 @@ along with GCC; see the file COPYING3. If not see /* Number of parallel tasks to run. */ static int lto_parallelism; +#ifdef HAVE_WORKING_FORK /* Number of active WPA streaming processes. */ static int nruns = 0; +#endif /* GNU make's jobserver info. */ static jobserver_info *jinfo = NULL; -- 2.47.2