From f44e18ed937498b68f765209a706449cbf4880ee Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 24 May 2012 13:14:57 +0100 Subject: [PATCH] Add stub impl of virNetlinkEventServiceLocalPid for Win32 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 (cherry picked from commit 2d191e8e2720abb86e3a14a073dc05c88966b8dc) --- src/util/virnetlink.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c index badf111e62..0e4d76bf8d 100644 --- a/src/util/virnetlink.c +++ b/src/util/virnetlink.c @@ -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