提交 a90b9778 编写于 作者: G Giuseppe Scrivano 提交者: Eric Blake

build: fix linker error on FreeBSD

Commit 2d74822a renamed
"freebsdNodeGetCPUCount" to "appleFreebsdNodeGetCPUCount", leaving one
call to "freebsdNodeGetCPUCount".  Fix this other case.
Signed-off-by: NGiuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: NEric Blake <eblake@redhat.com>
上级 9d132989
......@@ -1056,8 +1056,8 @@ nodeGetCPUCount(void)
VIR_FREE(cpupath);
return ncpu;
#elif defined(__FreeBSD__)
return freebsdNodeGetCPUCount();
#elif defined(__FreeBSD__) || defined(__APPLE__)
return appleFreebsdNodeGetCPUCount();
#else
virReportError(VIR_ERR_NO_SUPPORT, "%s",
_("host cpu counting not implemented on this platform"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册