[virt-tools-list] [PATCH] build: fix linker error on FreeBSD

Giuseppe Scrivano gscrivan at redhat.com
Tue Oct 8 16:21:04 UTC 2013


Commit 2d74822a9eb4856c7f5216bb92bcb76630660f72 renamed
"freebsdNodeGetCPUCount" to "appleFreebsdNodeGetCPUCount", leaving one
call to "freebsdNodeGetCPUCount".  Fix this other case.

Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 src/nodeinfo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nodeinfo.c b/src/nodeinfo.c
index 320d8f8..702ad7c 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"));
-- 
1.8.3.1




More information about the virt-tools-list mailing list