From 4c1c336c710f372bc1b3cc90d1c8089494476d87 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 29 Jul 2013 07:54:10 -0600 Subject: [PATCH] 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 --- src/util/virthreadwin32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/virthreadwin32.c b/src/util/virthreadwin32.c index 8928414b1d..5d6277f246 100644 --- a/src/util/virthreadwin32.c +++ b/src/util/virthreadwin32.c @@ -25,6 +25,8 @@ #include "viralloc.h" +#define VIR_FROM_THIS VIR_FROM_NONE + struct virThreadLocalData { DWORD key; virThreadLocalCleanup cleanup;