From: Roman Bogorodskiy Date: Sun, 12 Jun 2016 07:33:17 +0000 (+0300) Subject: nodeinfo: fix build on non-Linux X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=992f93f18a3d06f66692a02fc303ba3b70f6f463;p=libvirt.git nodeinfo: fix build on non-Linux SYSFS_SYSTEM_PATH is only defined for Linux, however it's used outside of #ifdef __linux__ code, e.g. as the first argument to nodeCapsInitNUMAFake(). But as this argument's value is used on Linux only, it's safe to define SYSFS_SYSTEM_PATH to "fake" to get things built on FreeBSD. --- diff --git a/src/nodeinfo.c b/src/nodeinfo.c index 4e344bb8c8..b02c29489b 100644 --- a/src/nodeinfo.c +++ b/src/nodeinfo.c @@ -129,6 +129,8 @@ virNodeGetSiblingsListLinux(const char *dir, int cpu_id) VIR_FREE(path); return ret; } +#else +# define SYSFS_SYSTEM_PATH "fake" #endif