Commit 3fda388a1c19bef4aa8615d91693260e74564bd8
1 parent
5e4ef64c
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
Showing
1 changed file
with
3 additions
and
1 deletions
vl.c
... | ... | @@ -2961,9 +2961,11 @@ CharDriverState *qemu_chr_open(const char *filename) |
2961 | 2961 | return qemu_chr_open_pp(filename); |
2962 | 2962 | } else |
2963 | 2963 | #endif |
2964 | +#if defined(__linux__) || defined(__sun__) | |
2964 | 2965 | if (strstart(filename, "/dev/", NULL)) { |
2965 | 2966 | return qemu_chr_open_tty(filename); |
2966 | - } else | |
2967 | + } else | |
2968 | +#endif | |
2967 | 2969 | #else /* !_WIN32 */ |
2968 | 2970 | if (strstart(filename, "COM", NULL)) { |
2969 | 2971 | return qemu_chr_open_win(filename); | ... | ... |