[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] Add stub impl of virNetlinkEventServiceLocalPid for Win32



From: "Daniel P. Berrange" <berrange redhat com>

Pushed the following under build-breaker fix rule (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 <berrange redhat com>
---
 src/util/virnetlink.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c
index e316137..9539694 100644
--- a/src/util/virnetlink.c
+++ b/src/util/virnetlink.c
@@ -669,6 +669,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
-- 
1.7.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]