aboutsummaryrefslogtreecommitdiffstats
path: root/domain.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-08-21 14:47:24 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-08-21 14:47:24 +0200
commit0957210d86be6a8daacef7dd0ac5adb1cb272b37 (patch)
tree4a3786b5f53fb94b4731ad6f6b48060d692eaaa2 /domain.c
parent41421beafee4dbbb7d6483487ac098b5f51791c4 (diff)
downloadvconsole-0957210d86be6a8daacef7dd0ac5adb1cb272b37.tar.gz
older libvirts don't have VIR_DOMAIN_PMSUSPENDED
Diffstat (limited to 'domain.c')
-rw-r--r--domain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/domain.c b/domain.c
index 3586ca8..079994f 100644
--- a/domain.c
+++ b/domain.c
@@ -10,7 +10,9 @@ static const char *state_name[] = {
[ VIR_DOMAIN_SHUTDOWN ] = "shutdown",
[ VIR_DOMAIN_SHUTOFF ] = "shutoff",
[ VIR_DOMAIN_CRASHED ] = "crashed",
+#ifdef VIR_DOMAIN_PMSUSPENDED
[ VIR_DOMAIN_PMSUSPENDED ] = "suspended",
+#endif
};
static const char *domain_state_name(struct vconsole_domain *dom)