You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/03/10 00:15:11 UTC
[trafficserver] branch 9.2.x updated: Fixes build when hwloc is not installed (#8715)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new 61cbf81 Fixes build when hwloc is not installed (#8715)
61cbf81 is described below
commit 61cbf810a0556d5722627f312991a066e9cd3736
Author: Randall Meyer <rr...@apache.org>
AuthorDate: Mon Mar 7 12:18:19 2022 -0800
Fixes build when hwloc is not installed (#8715)
Follow up to 08d35060
Co-authored-by: Chris McFarlen <cm...@apple.com>
(cherry picked from commit bff238df97a0293b05af339a71d6c71858711a9c)
---
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 ba0264c..d166ea6 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