From 7ab834a58bb46c6b55035221328e5a72f0631907 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Wed, 19 Jun 2019 22:11:17 +0400 Subject: [PATCH] hwloc: Include Linux or FreeBSD symbols depending on OS we are compiling on. --- third_party/hwloc/static-components.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/third_party/hwloc/static-components.h b/third_party/hwloc/static-components.h index af0ed1f62b7..0c9a621fd74 100644 --- a/third_party/hwloc/static-components.h +++ b/third_party/hwloc/static-components.h @@ -22,8 +22,13 @@ static const struct hwloc_component* hwloc_static_components[] = { &hwloc_xml_component, &hwloc_synthetic_component, &hwloc_xml_nolibxml_component, +#ifdef __Linux__ &hwloc_linux_component, &hwloc_linuxio_component, +#endif +#ifdef __FreeBSD__ + &hwloc_freebsd_component, +#endif #if defined(__x86_64__) || defined(__amd64__) || defined(_M_IX86) || \ defined(_M_X64) &hwloc_x86_component,