diff options
Diffstat (limited to 'tools/xenstore/xs_lib.c')
-rw-r--r-- | tools/xenstore/xs_lib.c | 9 |
1 files changed, 8 insertions, 1 deletions
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. */ |