From d26e4a37dfbc4a11db7c2bc92ab81b67498c034d Mon Sep 17 00:00:00 2001 From: Randall Meyer Date: Mon, 7 Mar 2022 11:05:32 -0800 Subject: [PATCH] Fixes build when hwloc is not installed Follow up to 08d35060 Co-authored-by: Chris McFarlen --- src/tscore/ink_hw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tscore/ink_hw.cc b/src/tscore/ink_hw.cc index ba0264c6a97..d166ea68777 100644 --- a/src/tscore/ink_hw.cc +++ b/src/tscore/ink_hw.cc @@ -45,6 +45,7 @@ ink_get_topology() static hwloc_topology_t topology = setup_hwloc(); return topology; } +#endif int ink_number_of_processors() @@ -67,4 +68,3 @@ ink_number_of_processors() return sysconf(_SC_NPROCESSORS_ONLN); // number of processing units (includes Hyper Threading) #endif } -#endif