]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix build of virsh on Win32 by moving SA_SIGINFO stub
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 20 Aug 2012 14:59:31 +0000 (15:59 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 20 Aug 2012 15:00:29 +0000 (16:00 +0100)
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
tools/virsh.c

index d1023785321c1e3de5e5d0d8d40d9ac425080f53..94ac1aa886b9ba16c229291f275e271d41f90441 100644 (file)
 #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)
 {
index 95a8bf623a67e9772cfd9821e921281a6a495fee..72d35ff78545dd034bb282cd5d54e78b417ebba6 100644 (file)
@@ -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:
  *