Revision 758e8e38 vl.c

b/vl.c
147 147
#include "qemu-config.h"
148 148
#include "qemu-objects.h"
149 149
#include "qemu-options.h"
150
#ifdef CONFIG_LINUX
150
#ifdef CONFIG_VIRTFS
151 151
#include "fsdev/qemu-fsdev.h"
152 152
#endif
153 153

  
......
1532 1532
    return 0;
1533 1533
}
1534 1534

  
1535
#ifdef CONFIG_LINUX
1535
#ifdef CONFIG_VIRTFS
1536 1536
static int fsdev_init_func(QemuOpts *opts, void *opaque)
1537 1537
{
1538 1538
    int ret;
......
2281 2281
                    exit(1);
2282 2282
                }
2283 2283
                break;
2284
#ifdef CONFIG_LINUX
2284
#ifdef CONFIG_VIRTFS
2285 2285
            case QEMU_OPTION_fsdev:
2286 2286
                opts = qemu_opts_parse(&qemu_fsdev_opts, optarg, 1);
2287 2287
                if (!opts) {
......
2705 2705

  
2706 2706
    if (qemu_opts_foreach(&qemu_chardev_opts, chardev_init_func, NULL, 1) != 0)
2707 2707
        exit(1);
2708
#ifdef CONFIG_LINUX
2708
#ifdef CONFIG_VIRTFS
2709 2709
    if (qemu_opts_foreach(&qemu_fsdev_opts, fsdev_init_func, NULL, 1) != 0) {
2710 2710
        exit(1);
2711 2711
    }

Also available in: Unified diff