From b9488ab5f5c72a1856ef21e7fd79f422799f6469 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 17 Oct 2006 18:21:25 +0100 Subject: [SOLARIS] Create kernel-interface implementations for libxc and xenstored. Additionally, on Solaris, tell the kernel when xenstored is running. Signed-off-by: John Levon --- tools/xenstore/xs_lib.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tools/xenstore/xs_lib.c') diff --git a/tools/xenstore/xs_lib.c b/tools/xenstore/xs_lib.c index 750d1823cf..0afe87d325 100644 --- a/tools/xenstore/xs_lib.c +++ b/tools/xenstore/xs_lib.c @@ -76,7 +76,14 @@ const char *xs_daemon_socket_ro(void) const char *xs_domain_dev(void) { char *s = getenv("XENSTORED_PATH"); - return (s ? s : "/proc/xen/xenbus"); + if (s) + return s; + +#ifdef __linux__ + return "/proc/xen/xenbus"; +#else + return "/dev/xen/xenbus"; +#endif } /* Simple routines for writing to sockets, etc. */ -- cgit v1.2.3