Build error on OSX in src/util/virnetlink.c

I'm building on OSX with no libnl. I had to do this to get src/util/virnetlink.c to compile:
This commit is contained in:
Duncan Rance
2012-03-06 16:15:41 +00:00
committed by Eric Blake
parent ce43483caf
commit e91c8b1805
2 changed files with 2 additions and 1 deletions

View File

@@ -223,6 +223,7 @@ Patches have also been contributed by:
Lincoln Myers <lincoln_myers@yahoo.com> Lincoln Myers <lincoln_myers@yahoo.com>
Peter Robinson <pbrobinson@gmail.com> Peter Robinson <pbrobinson@gmail.com>
Benjamin Cama <benoar@dolka.fr> Benjamin Cama <benoar@dolka.fr>
Duncan Rance <libvirt@dunquino.com>
[....send patches to get your name here....] [....send patches to get your name here....]

View File

@@ -545,9 +545,9 @@ int virNetlinkCommand(struct nl_msg *nl_msg ATTRIBUTE_UNUSED,
*/ */
int virNetlinkEventServiceStop(void) int virNetlinkEventServiceStop(void)
{ {
# if defined(__linux__) && !defined(HAVE_LIBNL)
netlinkError(VIR_ERR_INTERNAL_ERROR, netlinkError(VIR_ERR_INTERNAL_ERROR,
"%s", "%s",
# if defined(__linux__) && !defined(HAVE_LIBNL)
_("virNetlinkEventServiceStop is not supported since libnl was not available")); _("virNetlinkEventServiceStop is not supported since libnl was not available"));
# endif # endif
return 0; return 0;