Fix compilation against older hwloc (tested Debian Jessie 1.10.0-3)

This commit is contained in:
Tony Butler 2019-07-30 16:03:11 -06:00
parent 962f0cdd8e
commit c7307c978a

View file

@ -29,6 +29,15 @@
#include "backend/cpu/platform/BasicCpuInfo.h"
// handle older hwloc where objects had other names
#ifndef HWLOC_OBJ_PACKAGE
# define HWLOC_OBJ_PACKAGE HWLOC_OBJ_SOCKET
#endif
#ifndef HWLOC_OBJ_NUMANODE
# define HWLOC_OBJ_NUMANODE HWLOC_OBJ_NODE
#endif
typedef struct hwloc_obj *hwloc_obj_t;
typedef struct hwloc_topology *hwloc_topology_t;