[libvirt] [PATCH 2/2 V2] cleanup: make several interface functions commonly available
Eric Blake
eblake at redhat.com
Wed Jun 22 20:31:04 UTC 2011
On 06/21/2011 06:05 PM, Stefan Berger wrote:
> In a second cleanup step this patch makes several interface functions
> from macvtap.c commonly available by moving them into interface.c and
> prefixing their names with 'iface'.
> ---
> src/libvirt_private.syms | 8
> src/util/interface.c | 609 +++++++++++++++++++++++++++++++++++++++++++++++
> src/util/interface.h | 37 ++
> src/util/macvtap.c | 495 --------------------------------------
> 4 files changed, 663 insertions(+), 486 deletions(-)
Unfortunately, this breaks things when compiling on RHEL 5. There,
macvtap.c was not compiled, but interface.c is compiled, and I'm now
getting errors like this:
util/interface.c: In function 'ifaceMacvtapLinkAdd':
util/interface.c:538: warning: assignment makes pointer from integer
without a cast
util/interface.c:557: error: 'IFLA_LINKINJFO' undeclared (first use in
this function)
...
We need some preprocessor conditionals to filter out these functions
when support is lacking.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110622/1097c7c1/attachment-0001.sig>
More information about the libvir-list
mailing list