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

[libvirt] [PATCH] Add empty stub for virThreadCancel on Win32



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

Win32 does not like undefined symbols, so define an
empty virThreadCancel impl.

Signed-off-by: Daniel P. Berrange <berrange redhat com>

Pushed as a Win32 build breaker fix

---
 src/util/virthreadwin32.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util/virthreadwin32.c b/src/util/virthreadwin32.c
index 0ad7e5c..4543ad8 100644
--- a/src/util/virthreadwin32.c
+++ b/src/util/virthreadwin32.c
@@ -357,6 +357,8 @@ void virThreadJoin(virThreadPtr thread)
     }
 }
 
+void virThreadCancel(virThreadPtr thread ATTRIBUTE_UNUSED)
+{}
 
 int virThreadLocalInit(virThreadLocalPtr l,
                        virThreadLocalCleanup c)
-- 
1.8.1.4


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