aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-09-18 17:04:50 -0600
committerEric Blake <eblake@redhat.com>2012-09-18 17:48:07 -0600
commit35a03a6623ae271d655cf9fb301f8ab5a35a68b9 (patch)
tree714e2bcc034ad3aa1285246f492a456046cb2d26 /src
parentbitmap: fix problems in previous commit (diff)
downloadlibvirt-35a03a6623ae271d655cf9fb301f8ab5a35a68b9.tar.gz
libvirt-35a03a6623ae271d655cf9fb301f8ab5a35a68b9.tar.bz2
libvirt-35a03a6623ae271d655cf9fb301f8ab5a35a68b9.zip
build: fix nodeinfo build on non-Linux platforms
Commit aaa8ab3 added new static functions that are only used on Linux; but commit 22acfdc didn't go far enough to fix compiler issues. * src/nodeinfo.c (nodeSetMemoryParameterValue) (nodeGetMemoryParameterValue): Conditionally compile based on use.
Diffstat (limited to 'src')
-rw-r--r--src/nodeinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nodeinfo.c b/src/nodeinfo.c
index 302e0175d..b2de60fe9 100644
--- a/src/nodeinfo.c
+++ b/src/nodeinfo.c
@@ -931,6 +931,7 @@ nodeGetCPUmap(virConnectPtr conn ATTRIBUTE_UNUSED,
#endif
}
+#ifdef __linux__
static int
nodeSetMemoryParameterValue(const char *field,
virTypedParameterPtr param)
@@ -964,6 +965,7 @@ cleanup:
VIR_FREE(strval);
return ret;
}
+#endif
int
nodeSetMemoryParameters(virConnectPtr conn ATTRIBUTE_UNUSED,
@@ -1014,6 +1016,7 @@ nodeSetMemoryParameters(virConnectPtr conn ATTRIBUTE_UNUSED,
#endif
}
+#ifdef __linux__
static int
nodeGetMemoryParameterValue(const char *field,
void *value)
@@ -1058,6 +1061,7 @@ cleanup:
VIR_FREE(buf);
return ret;
}
+#endif
#define NODE_MEMORY_PARAMETERS_NUM 7
int