]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add stub impl of virNetlinkEventServiceLocalPid for Win32
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 24 May 2012 12:14:57 +0000 (13:14 +0100)
committerCole Robinson <crobinso@redhat.com>
Thu, 14 Jun 2012 22:22:52 +0000 (18:22 -0400)
The libvirt_private.syms file exports virNetlinkEventServiceLocalPid
so there needs to be a no-op stub for Win32 to avoid linker errors

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 2d191e8e2720abb86e3a14a073dc05c88966b8dc)

src/util/virnetlink.c

index badf111e62dc9c0c28f8c39a05d431c552260c0b..0e4d76bf8d2395ed014a7a7fb17588e3f61cde21 100644 (file)
@@ -659,6 +659,12 @@ bool virNetlinkEventServiceIsRunning(void)
     return 0;
 }
 
+int virNetlinkEventServiceLocalPid(void)
+{
+    netlinkError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
+    return -1;
+}
+
 /**
  * virNetlinkEventAddClient: register a callback for handling of
  * netlink messages