]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: fix linker error on FreeBSD
authorGiuseppe Scrivano <gscrivan@redhat.com>
Tue, 8 Oct 2013 16:21:04 +0000 (18:21 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 8 Oct 2013 18:45:20 +0000 (12:45 -0600)
Commit 2d74822a9eb4856c7f5216bb92bcb76630660f72 renamed
"freebsdNodeGetCPUCount" to "appleFreebsdNodeGetCPUCount", leaving one
call to "freebsdNodeGetCPUCount".  Fix this other case.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/nodeinfo.c

index 320d8f88656cec1e2868aa589461fba441ad44c0..7229734452d2166a0bdfd2474bfaa311291798c7 100644 (file)
@@ -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"));