]> git.ipfire.org Git - thirdparty/libvirt.git/commit
PATCH: Fix build without MACVTAP
authorMichael Wood <esiotrot@gmail.com>
Sat, 12 Nov 2011 11:39:17 +0000 (13:39 +0200)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 14 Nov 2011 20:25:33 +0000 (15:25 -0500)
commitbe622a63cd59bceb874b9a64ec5c906b05b11c68
tree53992842d7bfe1e461bd72c49d1e21ed724bfb57
parentafa1029adabe499a8706b50bee9f1f522d945969
PATCH: Fix build without MACVTAP

Hi

Commit c31d23a78715f1144c73862c46ab0436de8b5e85 removed the "conn"
parameter from qemuPhysIfaceConnect(), but it's still used if
WITH_MACVTAP is false.  Also, it's still mentioned in the comment
above the function:

/**
 * qemuPhysIfaceConnect:
 * @def: the definition of the VM (needed by 802.1Qbh and audit)
 * @conn: pointer to virConnect object
 * @driver: pointer to the qemud_driver
 * @net: pointer to he VM's interface description with direct device type
 * @qemuCaps: flags for qemu
 *
 * Returns a filedescriptor on success or -1 in case of error.
 */
int
qemuPhysIfaceConnect(virDomainDefPtr def,
                     struct qemud_driver *driver,
                     virDomainNetDefPtr net,
                     virBitmapPtr qemuCaps,
                     enum virVMOperationType vmop)
{
    int rc;
#if WITH_MACVTAP
[...]
#else
    (void)def;
    (void)conn;
    (void)net;
    (void)qemuCaps;
    (void)driver;
    (void)vmop;
    qemuReportError(VIR_ERR_INTERNAL_ERROR,
                    "%s", _("No support for macvtap device"));
    rc = -1;
#endif
    return rc;
}

--
Michael Wood <esiotrot@gmail.com>

From f4fc43b4111a4c099395c55902e497b8965e2b53 Mon Sep 17 00:00:00 2001
From: Michael Wood <esiotrot@gmail.com>
Date: Sat, 12 Nov 2011 13:37:53 +0200
Subject: [PATCH] Fix build without MACVTAP.
src/qemu/qemu_command.c