From: Daniel P. Berrange Date: Mon, 20 Aug 2012 14:59:31 +0000 (+0100) Subject: Fix build of virsh on Win32 by moving SA_SIGINFO stub X-Git-Tag: v0.10.0-rc1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a481798034ca87eb59e77b2a030c95ec1ea40e2;p=thirdparty%2Flibvirt.git 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 --- 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: *