From: Giuseppe Scrivano Date: Tue, 8 Oct 2013 16:21:04 +0000 (+0200) Subject: build: fix linker error on FreeBSD X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a90b9778c2da9710af01b7c8a9e381f83ec66f22;p=libvirt.git build: fix linker error on FreeBSD Commit 2d74822a9eb4856c7f5216bb92bcb76630660f72 renamed "freebsdNodeGetCPUCount" to "appleFreebsdNodeGetCPUCount", leaving one call to "freebsdNodeGetCPUCount". Fix this other case. Signed-off-by: Giuseppe Scrivano Signed-off-by: Eric Blake --- diff --git a/src/nodeinfo.c b/src/nodeinfo.c index 320d8f8865..7229734452 100644 --- a/src/nodeinfo.c +++ b/src/nodeinfo.c @@ -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"));