[libvirt] Build error on OSX in src/util/virnetlink.c
Eric Blake
eblake at redhat.com
Tue Mar 6 16:28:28 UTC 2012
On 03/06/2012 09:15 AM, Duncan Rance wrote:
> Hi,
>
> I'm building on OSX with no libnl. I had to do this to get src/util/virnetlink.c to compile:
>
>
>
> diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c
> index 1575bad..59f3e39 100644
> --- a/src/util/virnetlink.c
> +++ b/src/util/virnetlink.c
> @@ -545,9 +545,9 @@ int virNetlinkCommand(struct nl_msg *nl_msg ATTRIBUTE_UNUSED,
> */
> int virNetlinkEventServiceStop(void)
> {
> +# if defined(__linux__) && !defined(HAVE_LIBNL)
> netlinkError(VIR_ERR_INTERNAL_ERROR,
> "%s",
> -# if defined(__linux__) && !defined(HAVE_LIBNL)
> _("virNetlinkEventServiceStop is not supported since libnl was not available"));
Oops - that's a blatant bug. ACK and pushed. I've also added you to
AUTHORS; let me know if you prefer an alternate spelling.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120306/06c0be26/attachment-0001.sig>
More information about the libvir-list
mailing list