aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)