summaryrefslogtreecommitdiff
path: root/qemu/vl.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/vl.c')
-rw-r--r--qemu/vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu/vl.c b/qemu/vl.c
index 6420267f..3b465bad 100644
--- a/qemu/vl.c
+++ b/qemu/vl.c
@@ -2419,9 +2419,11 @@ int drive_init(struct drive_opt *arg, int snapshot,
if (!strcmp(buf, "ide")) {
type = IF_IDE;
max_devs = MAX_IDE_DEVS;
+#ifdef CONFIG_SCSI
} else if (!strcmp(buf, "scsi")) {
type = IF_SCSI;
max_devs = MAX_SCSI_DEVS;
+#endif
} else if (!strcmp(buf, "floppy")) {
type = IF_FLOPPY;
max_devs = 0;