aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);