]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: fix virthread build on mingw
authorEric Blake <eblake@redhat.com>
Mon, 29 Jul 2013 13:54:10 +0000 (07:54 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 29 Jul 2013 14:56:48 +0000 (08:56 -0600)
Our recent conversion to make VIR_ALLOC report oom wasn't
tested on mingw:

In file included from ../../src/util/virthread.c:29:0:
../../src/util/virthreadwin32.c: In function 'virCondWait':
../../src/util/virthreadwin32.c:166:81: error: 'VIR_FROM_THIS' undeclared (first use in this function)
     if (VIR_REALLOC_N(c->waiters, c->nwaiters + 1) < 0) {
                                                                                 ^

* src/util/virthreadwin32.c (VIR_FROM_THIS): Define.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/virthreadwin32.c

index 8928414b1d522b6aaf7912ca732008d2d9b5fdd5..5d6277f246cd6465c7181733fc90f7f2b43b03f5 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "viralloc.h"
 
+#define VIR_FROM_THIS VIR_FROM_NONE
+
 struct virThreadLocalData {
     DWORD key;
     virThreadLocalCleanup cleanup;