Commit 3fda388a authored by ths's avatar ths
Browse files

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
parent 5e4ef64c
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment