hwloc: Include Linux or FreeBSD symbols depending on OS we are compiling on.

This commit is contained in:
Gleb Popov 2019-06-19 22:11:17 +04:00
parent 4f1a1f19e9
commit 7ab834a58b

View File

@ -22,8 +22,13 @@ static const struct hwloc_component* hwloc_static_components[] = {
&hwloc_xml_component, &hwloc_xml_component,
&hwloc_synthetic_component, &hwloc_synthetic_component,
&hwloc_xml_nolibxml_component, &hwloc_xml_nolibxml_component,
#ifdef __Linux__
&hwloc_linux_component, &hwloc_linux_component,
&hwloc_linuxio_component, &hwloc_linuxio_component,
#endif
#ifdef __FreeBSD__
&hwloc_freebsd_component,
#endif
#if defined(__x86_64__) || defined(__amd64__) || defined(_M_IX86) || \ #if defined(__x86_64__) || defined(__amd64__) || defined(_M_IX86) || \
defined(_M_X64) defined(_M_X64)
&hwloc_x86_component, &hwloc_x86_component,