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: *