From: Duncan Rance Date: Tue, 6 Mar 2012 16:15:41 +0000 (+0000) Subject: Build error on OSX in src/util/virnetlink.c X-Git-Tag: v0.9.11-rc1~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e91c8b1805f86caefcb1b25068ad0248c84fb97f;p=thirdparty%2Flibvirt.git 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: --- diff --git a/AUTHORS b/AUTHORS index 32d5173e90..954fd1a68e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -223,6 +223,7 @@ Patches have also been contributed by: Lincoln Myers Peter Robinson Benjamin Cama + Duncan Rance [....send patches to get your name here....] diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c index 1575bade81..59f3e39e6f 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")); # endif return 0;