Fix compilation against older hwloc (tested Debian Jessie 1.10.0-3)
This commit is contained in:
parent
962f0cdd8e
commit
c7307c978a
1 changed files with 9 additions and 0 deletions
|
@ -29,6 +29,15 @@
|
||||||
#include "backend/cpu/platform/BasicCpuInfo.h"
|
#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_obj *hwloc_obj_t;
|
||||||
typedef struct hwloc_topology *hwloc_topology_t;
|
typedef struct hwloc_topology *hwloc_topology_t;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue