]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Build error on OSX in src/util/virnetlink.c
authorDuncan Rance <libvirt@dunquino.com>
Tue, 6 Mar 2012 16:15:41 +0000 (16:15 +0000)
committerEric Blake <eblake@redhat.com>
Tue, 6 Mar 2012 16:25:38 +0000 (09:25 -0700)
I'm building on OSX with no libnl. I had to do this to get src/util/virnetlink.c to compile:

AUTHORS
src/util/virnetlink.c

diff --git a/AUTHORS b/AUTHORS
index 32d5173e900148860ecf1940dba78eea2a2c9007..954fd1a68e63915dd82b33676202f6bcefb79a2c 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -223,6 +223,7 @@ Patches have also been contributed by:
   Lincoln Myers        <lincoln_myers@yahoo.com>
   Peter Robinson       <pbrobinson@gmail.com>
   Benjamin Cama        <benoar@dolka.fr>
+  Duncan Rance         <libvirt@dunquino.com>
 
   [....send patches to get your name here....]
 
index 1575bade814931245847cdce84bb2498cb92e8bb..59f3e39e6fe8f68289bafca3a1cbbf197a9efd05 100644 (file)
@@ -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"));
 # endif
     return 0;