Merge branch 'tizen_qemu_2.0' into tizen
[sdk/emulator/qemu.git] / hw / 9pfs / virtio-9p-device.c
index a68de76..24ef874 100644 (file)
@@ -128,7 +128,15 @@ static void virtio_9p_device_realize(DeviceState *dev, Error **errp)
      * call back to do that. Since we are in the init path, we don't
      * use co-routines here.
      */
+#ifdef CONFIG_MARU
+#ifndef CONFIG_WIN32
+    if (s->ops->name_to_path(&s->ctx, NULL, "/", &path) < 0) {
+#else
+    if (s->ops->name_to_path(&s->ctx, NULL, "\\", &path) < 0) {
+#endif
+#else
     if (s->ops->name_to_path(&s->ctx, NULL, "/", &path) < 0) {
+#endif
         error_setg(errp,
                    "error in converting name to path %s", strerror(errno));
         goto out;