]> git.ipfire.org Git - thirdparty/libvirt.git/commit
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)
commit4c1c336c710f372bc1b3cc90d1c8089494476d87
tree3c9d3e4fc27d7ecd8105324d8b067007e53249b2
parent61fac39e5f13e15d4d0cc6fb84bd449b7dcb47bd
build: fix virthread build on mingw

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