* [Qemu-devel] [PATCH] fix pty handling on OSX/XNU
@ 2009-12-05 16:55 Stefan Reinauer
0 siblings, 0 replies; only message in thread
From: Stefan Reinauer @ 2009-12-05 16:55 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
I think OSX can be treated like Linux and BSD for the PTY handling.
Best regards
Stefan
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info@coresystems.de • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
[-- Attachment #2: qemu-char.diff --]
[-- Type: text/plain, Size: 831 bytes --]
XNU pty fixes
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
--- qemu-0.11.0/qemu-char.c
+++ qemu-0.11.0/qemu-char.c
@@ -821,7 +821,7 @@
#endif
#if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
- || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+ || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)
typedef struct {
int fd;
@@ -2262,7 +2262,7 @@
} else
#endif
#if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
- || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+ || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)
if (strstart(filename, "/dev/", NULL)) {
chr = qemu_chr_open_tty(filename);
} else
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-05 16:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-05 16:55 [Qemu-devel] [PATCH] fix pty handling on OSX/XNU Stefan Reinauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).