[PATCH] Add empty stub for virThreadCancel on Win32

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

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

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

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>

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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]