libs/xenstore: set correct FreeBSD device
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 12 Dec 2016 16:07:40 +0000 (16:07 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 13 Dec 2016 10:49:56 +0000 (10:49 +0000)
The path to the xenstore FreeBSD device is /dev/xen/xenstore.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/xs_lib.c

index 5ef3d6d895063a3a8f27dc9cc9c5856e68a37138..3e43f8809d422574d2300e7136fecd00ede663f7 100644 (file)
@@ -85,6 +85,8 @@ const char *xs_domain_dev(void)
        return "/proc/xen/xenbus";
 #elif defined(__NetBSD__)
        return "/kern/xen/xenbus";
+#elif defined(__FreeBSD__)
+       return "/dev/xen/xenstore";
 #else
        return "/dev/xen/xenbus";
 #endif