aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/utils.h
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-02-09 18:33:34 +0000
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-02-09 18:33:34 +0000
commitf5f38f9f51d3dcf214d1035f8c23b2c2004243eb (patch)
tree3d04dae6798afdeb923a105f7999dfee2130c473 /tools/xenstore/utils.h
parent47a365c7f287dd670b95f3ac206a815c3043d5fe (diff)
downloadxen-f5f38f9f51d3dcf214d1035f8c23b2c2004243eb.tar.gz
xen-f5f38f9f51d3dcf214d1035f8c23b2c2004243eb.tar.bz2
xen-f5f38f9f51d3dcf214d1035f8c23b2c2004243eb.zip
xenstored: support running in minios stubdom
A previous versions of this patch has been sent to xen-devel. See http://lists.xensource.com/archives/html/xen-devel/2009-03/msg01655.html Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com> Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com> Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Acked-by: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/xenstore/utils.h')
-rw-r--r--tools/xenstore/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/xenstore/utils.h b/tools/xenstore/utils.h
index f378343707..2effd17b61 100644
--- a/tools/xenstore/utils.h
+++ b/tools/xenstore/utils.h
@@ -19,7 +19,9 @@ static inline bool strends(const char *a, const char *b)
return streq(a + strlen(a) - strlen(b), b);
}
+#ifndef ARRAY_SIZE
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+#endif
void barf(const char *fmt, ...) __attribute__((noreturn));
void barf_perror(const char *fmt, ...) __attribute__((noreturn));