# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1201281767 28800
# Node ID 8b00e1a3a4965a7aaefa44804a285ec9866c60a9
# Parent 5b0ceff57c8a4c9e1095da57267e2362df8f3c2d
Fix build error due to API change in libvirt-0.4.0
I don't have a libvirt-0.4.0 installation handy, so if someone could test
this out, I'd appreciate it.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 5b0ceff57c8a -r 8b00e1a3a496 libxkutil/device_parsing.c
--- a/libxkutil/device_parsing.c Fri Jan 25 08:41:47 2008 -0800
+++ b/libxkutil/device_parsing.c Fri Jan 25 09:22:47 2008 -0800
@@ -856,7 +856,11 @@ static int _change_device(virDomainPtr d
{
char *xml = NULL;
int ret = 0;
+#if LIBVIR_VERSION_NUMBER >= 4000
+ int (*func)(virDomainPtr, const char *)
+#else
int (*func)(virDomainPtr, char *);
+#endif
if (attach)
func = virDomainAttachDevice;
Show replies by date