From 9ef12b6ff5e7524b5a27a5c35e4f086e633914b0 Mon Sep 17 00:00:00 2001
From: "Daniel P. Berrange" <berrange@redhat.com>
Date: Wed, 15 Aug 2012 21:43:01 +0100
Subject: [PATCH] Fix WIN32 conditional for disabling console command

The '#endif' for a WIN32 conditional was placed one function
too high, leaving the impl of the console command enabled
and referencing functions that were disabled
---
 tools/virsh-domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 69e0133450..676c002e68 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -1662,7 +1662,6 @@ cmdRunConsole(vshControl *ctl, virDomainPtr dom,
 
     return ret;
 }
-#endif /* WIN32 */
 
 static bool
 cmdConsole(vshControl *ctl, const vshCmd *cmd)
@@ -1696,6 +1695,7 @@ cleanup:
     virDomainFree(dom);
     return ret;
 }
+#endif /* WIN32 */
 
 /* "domif-setlink" command
  */
-- 
GitLab