From 6a481798034ca87eb59e77b2a030c95ec1ea40e2 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 20 Aug 2012 15:59:31 +0100 Subject: [PATCH] Fix build of virsh on Win32 by moving SA_SIGINFO stub On Win32 SA_SIGINFO is not defined, so virsh.c stub'd it out to 0, but recent changes moved the usage out of virsh.c and into virsh-domain.c --- tools/virsh-domain.c | 5 +++++ tools/virsh.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index d102378532..94ac1aa886 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -52,6 +52,11 @@ #include "virtypedparam.h" #include "xml.h" +/* Gnulib doesn't guarantee SA_SIGINFO support. */ +#ifndef SA_SIGINFO +# define SA_SIGINFO 0 +#endif + static const char * vshDomainVcpuStateToString(int state) { diff --git a/tools/virsh.c b/tools/virsh.c index 95a8bf623a..72d35ff785 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -223,11 +223,6 @@ out: */ static int disconnected = 0; /* we may have been disconnected */ -/* Gnulib doesn't guarantee SA_SIGINFO support. */ -#ifndef SA_SIGINFO -# define SA_SIGINFO 0 -#endif - /* * vshCatchDisconnect: *