[PATCH] (#2ish) Fix for libvirt-0.4.0

# HG changeset patch # User Jay Gagnon <grendel@linux.vnet.ibm.com> # Date 1201283027 18000 # Node ID 26461f17fbb4b37d14bf74c82064383753dcedd9 # Parent adf18661f7948a0287a4586d97572793e8e03826 (#2ish) Fix for libvirt-0.4.0 Little tough for Dan to test that one since the #define doesn't even happen on his system, but the patch was light one semicolon. :) Signed-off-by: Jay Gagnon <grendel@linux.vnet.ibm.com> diff -r adf18661f794 -r 26461f17fbb4 libxkutil/device_parsing.c --- a/libxkutil/device_parsing.c Thu Jan 24 12:56:45 2008 +0100 +++ b/libxkutil/device_parsing.c Fri Jan 25 12:43:47 2008 -0500 @@ -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;

JG> # HG changeset patch JG> # User Jay Gagnon <grendel@linux.vnet.ibm.com> JG> # Date 1201283027 18000 JG> # Node ID 26461f17fbb4b37d14bf74c82064383753dcedd9 JG> # Parent adf18661f7948a0287a4586d97572793e8e03826 JG> (#2ish) Fix for libvirt-0.4.0 Well, that was dumb of me, but this one looks better. Thanks :) -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com
participants (2)
-
Dan Smith
-
Jay Gagnon