---
libvirt-override.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libvirt-override.c b/libvirt-override.c
index fa8b94c..55c6089 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -2275,6 +2275,7 @@ libvirt_virConnectGetVersion(PyObject *self ATTRIBUTE_UNUSED,
return PyInt_FromLong(hvVersion);
}
+#if LIBVIR_CHECK_VERSION(1,1,3)
PyObject *
libvirt_virConnectGetCPUModelNames(PyObject *self ATTRIBUTE_UNUSED,
PyObject *args)
@@ -2326,6 +2327,7 @@ error:
rv = VIR_PY_INT_FAIL;
goto done;
}
+#endif /* LIBVIR_CHECK_VERSION(1,1,3) */
static PyObject *
libvirt_virConnectGetLibVersion(PyObject *self ATTRIBUTE_UNUSED,
@@ -7232,7 +7234,9 @@ static PyMethodDef libvirtMethods[] = {
#include "build/libvirt-export.c"
{(char *) "virGetVersion", libvirt_virGetVersion, METH_VARARGS, NULL},
{(char *) "virConnectGetVersion", libvirt_virConnectGetVersion,
METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(1,1,3)
{(char *) "virConnectGetCPUModelNames", libvirt_virConnectGetCPUModelNames,
METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(1,1,3) */
{(char *) "virConnectGetLibVersion", libvirt_virConnectGetLibVersion,
METH_VARARGS, NULL},
{(char *) "virConnectOpenAuth", libvirt_virConnectOpenAuth, METH_VARARGS,
NULL},
{(char *) "virConnectListDomainsID", libvirt_virConnectListDomainsID,
METH_VARARGS, NULL},
--
1.8.3.2