aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-28 15:14:49 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-28 15:14:49 +0000
commit3fda388a1c19bef4aa8615d91693260e74564bd8 (patch)
tree5e3ec3c4511c4ee271a1d9f675f36c1a5e44d1a4 /vl.c
parent5e4ef64cfd8cfcd8eb76c70a0d837f06ca8c5467 (diff)
downloadqemu-3fda388a1c19bef4aa8615d91693260e74564bd8.zip
qemu-3fda388a1c19bef4aa8615d91693260e74564bd8.tar.gz
qemu-3fda388a1c19bef4aa8615d91693260e74564bd8.tar.bz2
Limit the use of qemu_chr_open_tty to __linux__ and __sun__, by Andreas
Faerber. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3032 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 6006e1b..778d159 100644
--- a/vl.c
+++ b/vl.c
@@ -2961,9 +2961,11 @@ CharDriverState *qemu_chr_open(const char *filename)
return qemu_chr_open_pp(filename);
} else
#endif
+#if defined(__linux__) || defined(__sun__)
if (strstart(filename, "/dev/", NULL)) {
return qemu_chr_open_tty(filename);
- } else
+ } else
+#endif
#else /* !_WIN32 */
if (strstart(filename, "COM", NULL)) {
return qemu_chr_open_win(filename);