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

Daniel P. Berrange berrange at redhat.com
Mon Apr 15 17:06:07 UTC 2013


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

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

Signed-off-by: Daniel P. Berrange <berrange at 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




More information about the libvir-list mailing list