[libvirt] [PATCH] osx: fix broken enum typedef declaration breaking compilation on osx
Justin Clift
jclift at redhat.com
Mon Feb 14 11:32:25 UTC 2011
On 14/02/2011, at 10:26 PM, Justin Clift wrote:
> As pointed out by Daniel Berrange, this broken enum declaration was the cause of
> "duplicate symbol _virDomainQemuMonitorCommandFlags ..." errors on OSX.
> ---
> include/libvirt/libvirt-qemu.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/include/libvirt/libvirt-qemu.h b/include/libvirt/libvirt-qemu.h
> index 9257c2f..f172eff 100644
> --- a/include/libvirt/libvirt-qemu.h
> +++ b/include/libvirt/libvirt-qemu.h
> @@ -20,7 +20,7 @@
> extern "C" {
> # endif
>
> -enum {
> +typedef enum {
> VIR_DOMAIN_QEMU_MONITOR_COMMAND_DEFAULT = 0,
> VIR_DOMAIN_QEMU_MONITOR_COMMAND_HMP = (1 << 0), /* cmd is in HMP */
> } virDomainQemuMonitorCommandFlags;
> --
> 1.7.4.1
NACK with prejudice, Jirka's already submitted the same thing. :)
More information about the libvir-list
mailing list