From: ths Date: Thu, 28 Jun 2007 15:14:49 +0000 (+0000) Subject: Limit the use of qemu_chr_open_tty to __linux__ and __sun__, by Andreas X-Git-Tag: release_0_9_1~865 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fda388a1c19bef4aa8615d91693260e74564bd8;p=thirdparty%2Fqemu.git 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 --- diff --git a/vl.c b/vl.c index 6006e1be496..778d159c00e 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);